document.write( "Question 1158513: Determine whether the given credit card number is valid number.
\n" ); document.write( "1. 4417-5486-1785-6411
\n" ); document.write( "2. 5591-4912-7644-1105
\n" ); document.write( "

Algebra.Com's Answer #781458 by math_helper(2461)\"\" \"About 
You can put this solution on YOUR website!
\r
\n" ); document.write( "\n" ); document.write( "I will do #1, as you are supposed to post one problem per post. You can use this as a template for problem #2.\r
\n" ); document.write( "\n" ); document.write( "1. 4417-5486-1785-6411\r
\n" ); document.write( "\n" ); document.write( "NOTE: check digit is last digit (=1)\r
\n" ); document.write( "\n" ); document.write( "Drop last digit (the check digit):
\n" ); document.write( " 4417-5486-1785-641\r
\n" ); document.write( "\n" ); document.write( "Reverse digits:
\n" ); document.write( " 146-5871-6845-7144\r
\n" ); document.write( "\n" ); document.write( "Multiply odd-positions by 2:
\n" ); document.write( " 24(12)-5(16)72-6(16)4(10)-7248\r
\n" ); document.write( "\n" ); document.write( "Re-write mod-9:
\n" ); document.write( " 243-5772-6741-7248\r
\n" ); document.write( "\n" ); document.write( "Add all digits:
\n" ); document.write( " 2+4+3+5+7+7+2+6+7+4+1+7+2+4+8 = 69\r
\n" ); document.write( "\n" ); document.write( "Find the number that sums with 69 to make a multiple of 10: 1+69=70, 1 matches the check number. EDIT (added this): Or, perhaps better, take the check digit (1) add to the above sum (69) to get 70, then check 70 mod 10. If 0 then the credit card number is valid.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The number IS VALID.\r
\n" ); document.write( "\n" ); document.write( "---------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( " \n" ); document.write( "
\n" );