We will first determine the number of integers x in the range
such that 2x-x2 is divisible by 7. Subtracting this
number from 10000 then gives the answer to the problem.
Now 2x-x2 is divisible by 7 if and only if 2x and x2 both leave the same remainder when divided b 7. So it is natural to study these remainders. They both keep repeating as specified by the following claim.
Claim: For every positive integer x:
Proof of the Claim:
(a) Note that
is a
multiple of 7.
(b) This is because
(x+7)2-x2=14x+49=7(2x+7) is a multiple of
7.
Investigating the first couple of cases we see that the possible remainders of 2x when divided by 7 are 2, 4, and 1, and they keep repeating with a period of 3 (by Claim 1(a)). Similarly, by Claim 1(b) and investigation of initial cases, the reminders of x2 when divided by 7 keep repeating with period of 7 and the cycle is 1, 4, 2, 2, 4, 1, 0.
Combining these observations, we see that the remainders of both 2xand x2 will repeat after a period of
.
A tabulation of the
first 21 values of x is given by the following chart:
Back to the Problem of
the Week Page