If n is a positive integer and r is the remainder when (n-1)(n+1) is divided by 24, what is the value of r?
For the benefit of fellow BTGers, here is another approach, The Algebra Way !
1. 2 is not a factor of n
Then n can be written in the form 2x+1 or 2x-1
If n = 2x+1, then(n-1)(n+1) = (2x+1-1)*(2x+1+1)= 2x*(2x+2) = 4*x*(x+1).
(n-1)*(n+1) = 4*x*(x+1), is divisible by 24 if x*(x+1) is a multiple of 6 (x=2) and is not divisible by 24 if x*(x+1) is NOT a multiple of 6 (x=4).
If n = 2x-1, then(n-1)(n+1) = (2x-1-1)*(2x-1+1)= 2x*(2x-2) = 4*x*(x-1).
(n-1)*(n+1) = 4*x*(x-1), is divisible by 24 if x*(x-1) is a multiple of 6 (x=3) and is not divisible by 24 if x*(x-1) is NOT a multiple of 6 (x=2).
Hence Insufficient!
2. 3 is not a factor of n
Then n can be written in the form 3x+1, 3x-1, 3x+2, or 3x-2
If n = 3x+1, then(n-1)(n+1) = (3x+1-1)*(3x+1+1)= 3x*(3x+2)
(n-1)*(n+1) = 3x*(3x+2), is divisible by 24 if x*(3x+2) is a multiple of 8 (x=2) and is not divisible by 24 if x*(3x+2) is NOT a multiple of 8 (x=3).
If n = 3x-1, then(n-1)(n+1) = (3x-1-1)*(3x-1+1)= 3x*(3x-2)
(n-1)*(n+1) = 3x*(3x-2), is divisible by 24 if x*(3x-2) is a multiple of 8 (x=2) and is not divisible by 24 if x*(3x-2) is NOT a multiple of 8 (x=3).
If n = 3x+2, then(n-1)(n+1) = (3x+2-1)*(3x+2+1)= (3x+1)*(3x+3) = 3*(x+1)*(3x+1)
(n-1)*(n+1) = 3*(x+1)*(3x+1), is divisible by 24 if (x+1)*(3x+1) is a multiple of 8 (x=3) and is not divisible by 24 if (x+1)*(3x+1) is NOT a multiple of 8 (x=4).
If n = 3x-2, then(n-1)(n+1) = (3x-2-1)*(3x-2+1)= (3x-1)*(3x-3) = 3*(x-1)*(3x-1)
(n-1)*(n+1) = 3*(x-1)*(3x-1), is divisible by 24 if (x-1)*(3x-1) is a multiple of 8 (x=3) and is not divisible by 24 if (x-1)*(3x-1) is NOT a multiple of 8 (x=4).
From 1 and 2
n can be written in the form 6x+1(n>=0) or 6x-1(n>0)
If n = 6x+1, then(n-1)(n+1) = (6x+1-1)*(6x+1+1)= 6x*(6x+2) = 12*x*(3x+1).
If x is even, 3x+1 = odd and 12*x*(3x+1) = 12*even*odd = 24*An Integer. Hence the value of r = 0
If x is odd, 3x+1 = even and 12*x*(3x+1) = 12*odd*even = 24*An Integer. Hence the value of r = 0
If n = 6x-1, then(n-1)(n+1) = (6x-1-1)*(6x-1+1)= 6x*(6x-2) = 12*x*(3x-1).
If x is even, 3x-1 = odd and 12*x*(3x-1) = 12*even*odd = 24*An Integer. Hence the value of r = 0
If x is odd, 3x-1 = even and 12*x*(3x-1) = 12*odd*even = 24*An Integer. Hence the value of r = 0
Hence Sufficient, Answer
C
Please correct me if I am wrong !