How many positive integers are there such that ?
Note: ' ' means 'divides'.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We need to look for where the modulo 7 "cycles", (if any), for both the sequences 2 n and n 2 correspond.
For the 2 n sequence we note that 2 n + 3 = 8 ∗ 2 n ≡ 2 n ( m o d 7 ) since 8 ≡ 1 ( m o d 7 ) . So the modulo 7 cycle here has length 3 , and proceeds as 2 , 4 , 1 , 2 , 4 , 1 , 2 , 4 , 1 , . . . . .
For the n 2 sequence, we first note that, since ( n + 7 ) 2 ≡ n 2 ( m o d 7 ) , the maximum length of any modulo 7 cycle will be 7 . Since the actual cycle proceeds as 1 , 4 , 2 , 2 , 4 , 1 , 0 , we see that this cycle does indeed have length 7 .
The modulo 7 cycle for 2 n − n 2 will then have length l c m ( 3 , 7 ) = 2 1 , and proceeds as
1 , 0 , 6 , 0 , 0 , 0 , 2 , 3 , 4 , 0 , 2 , 4 , 1 , 4 , 0 , 5 , 2 , 6 , 5 , 3 , 1 .
Thus for every successive sequence of 2 1 integers starting at n = 1 there are a total of 6 instances where 7 ∣ ( 2 n − n 2 ) .
Now since 1 0 0 0 0 = 4 7 6 × 2 1 + 4 , and since of the first 4 values in this last cycle there are 2 instances where 7 ∣ ( 2 n − n 2 ) , the answer to this question is 4 7 6 × 6 + 2 = 2 8 5 8 .