document.write( "Question 1204981: If n is an integer between 1 and 96 (inclusive), what is the probability that n(n+1)(n+2) is divisible by 8?
\n" );
document.write( "a.1/4 b.1/2 c.5/8 d.3/4 e.7/8 \n" );
document.write( "
Algebra.Com's Answer #841560 by math_tutor2020(3817) ![]() You can put this solution on YOUR website! \n" ); document.write( "Answer: 5/8 (choice C)\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Explanation\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Even though the other tutors offer much more efficient solutions, I'll post mine anyway. \n" ); document.write( "It follows the same idea as tutor ikleyn, but I show a bit more detail.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "When dividing by 8, there are 8 possible remainders: 0 through 7. \n" ); document.write( "\"remainder 0\" is the same as \"remainder 8\".\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The class of numbers that give remainder 0 are: 8, 16, 24, 32, ... \n" ); document.write( "i.e. the multiples of 8 \n" ); document.write( "Let k be an integer \n" ); document.write( "n = 8k = some multiple of 8 \n" ); document.write( "It's fairly obvious that n(n+1)(n+2) is a multiple of 8 when n = 8k \n" ); document.write( "If you aren't convinced, then replace n with 8k to see that: \n" ); document.write( "n(n+1)(n+2) = 8k(8k+1)(8k+2) = 8*( k(8k+1)(8k+2) ) = 8*(some integer)\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Now onto the \"remainder 1\" class of numbers (1, 9, 17, 25, ...) \n" ); document.write( "Those are of the form n = 8k+1. They are 1 more than a multiple of 8. \n" ); document.write( "Plug that into n(n+1)(n+2) to get (8k+1)(8k+2)(8k+3) \n" ); document.write( "Expand that out to get the cubic 512k^3 + 384k^2 + 88k + 6 \n" ); document.write( "Then notice how the first three terms we can factor out 8, so we could rewrite that as \n" ); document.write( "8(64k^3 + 48k^2 + 11k) + 6 = 8(some integer) + 6 \n" ); document.write( "Values of n in the \"remainder 1\" class lead to n(n+1)(n+2) having remainder 6.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Example: \n" ); document.write( "n = 9 \n" ); document.write( "n(n+1)(n+2) = 9*10*11 = 990 \n" ); document.write( "990/8 = 123 remainder 6 \n" ); document.write( "Another example: \n" ); document.write( "n = 17 \n" ); document.write( "n(n+1)(n+2) = 17*18*19 = 5814 \n" ); document.write( "5814/8 = 726 remainder 6\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "So we can rule out all of the \"remainder 1\" class numbers.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "For the \"remainder 2\" class, we could follow similar steps to remainder 1. \n" ); document.write( "But this time I'll use modular arithmetic as a shortcut. \n" ); document.write( "If you aren't familiar with this notation, then please review online resources. \n" ); document.write( "You could get away with doing this problem without resorting to modular arithmetic (by using the polynomial method shown above), but the polynomial method is cumbersome.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Here's what the remainder 2 case looks like \n" ); document.write( "n = 8k+2 \n" ); document.write( "n(n+1)(n+2) \n" ); document.write( "= (8k+2)(8k+2+1)(8k+2+2) \n" ); document.write( "= (8k+2)(8k+3)(8k+4) \n" ); document.write( "= 2*3*4 (mod 8) \n" ); document.write( "= 24 (mod 8) \n" ); document.write( "= 0 (mod 8) \n" ); document.write( "We get remainder 0 at the end, proving that n = 8k+2 leads to n(n+1)(n+2) to be a multiple of 8. \n" ); document.write( "Therefore numbers like n = 2, n = 10, n = 18, n = 26, etc will make n(n+1)(n+2) to be a multiple of 8.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Example: \n" ); document.write( "n = 10 \n" ); document.write( "n(n+1)(n+2) = 10*11*12 = 1320 \n" ); document.write( "1320/8 = 165 remainder 0 = 165 \n" ); document.write( "1320 is a multiple of 8, so n(n+1)(n+2) is a multiple of 8 when n = 10.\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "I'll go through the other remainder classes fairly quickly using the mod notation \n" ); document.write( "n = 8k+3 \n" ); document.write( "n(n+1)(n+2) \n" ); document.write( "= (8k+3)(8k+3+1)(8k+3+2) \n" ); document.write( "= (8k+3)(8k+4)(8k+5) \n" ); document.write( "= 3*4*5 (mod 8) \n" ); document.write( "= 60 (mod 8) \n" ); document.write( "= 4 (mod 8) \n" ); document.write( "We don't get remainder 0, so we rule out the \"remainder 3\" class of numbers (eg: 3, 11, 19, ...)\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "n = 8k+4 \n" ); document.write( "n(n+1)(n+2) \n" ); document.write( "= (8k+4)(8k+4+1)(8k+4+2) \n" ); document.write( "= (8k+4)(8k+5)(8k+6) \n" ); document.write( "= 4*5*6 (mod 8) \n" ); document.write( "= 120 (mod 8) \n" ); document.write( "= 8*15 (mod 8) \n" ); document.write( "= 0 (mod 8) \n" ); document.write( "We do get remainder 0, which means any value of n part of the \"remainder 4\" group will make n(n+1)(n+2) a multiple of 8. \n" ); document.write( "Some example values are: n = 4, n = 12, n = 20, n = 28, ...\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "n = 8k+5 \n" ); document.write( "n(n+1)(n+2) \n" ); document.write( "= (8k+5)(8k+5+1)(8k+5+2) \n" ); document.write( "= (8k+5)(8k+6)(8k+7) \n" ); document.write( "= 5*6*7 (mod 8) \n" ); document.write( "= 5*(-2)*(-1) (mod 8) \n" ); document.write( "= 10 (mod 8) \n" ); document.write( "= 2 (mod 8) \n" ); document.write( "The nonzero remainder rules out everything in the \"remainder 5\" group. \n" ); document.write( "Some values in this group are 5, 13, 21, ...\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Cases n = 8k+6 and n = 8k+7 are handled by n = 8k-2 and n = 8k-1 respectively \n" ); document.write( "But notice how if n = 8k-2 then the n+2 is a multiple of 8 \n" ); document.write( "Similarly, n = 8k-1 leads to n+1 being a multiple of 8 \n" ); document.write( "Therefore, cases n = 8k+6 and n = 8k+7 are guaranteed to lead n(n+1)(n+2) as a multiple of 8.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "------------------\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "There's a lot to take in. \n" ); document.write( "But the key summary is that we get n(n+1)(n+2) as a multiple of 8 for these remainder classes: 2, 4, 6, 7, 8 \n" ); document.write( "There are 5 remainder classes of values that will give us a multiple of 8. \n" ); document.write( "This is out of 8 remainder classes.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Ultimately this leads to the final answer 5/8 \n" ); document.write( " \n" ); document.write( " |