How many positive integers are there that are less than such that is divisible by ?
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.
Value of 2 x mod 7 repeats in a cycle of length 3. So clearly, the value of this expression only depends on value of x modulo 21. Easy to consider values mod 3 and 7 to check that the set of values in {1,21} that satisfy this condition are {2,4,5,6,10,15}. This works till 10000-10000%21 = 9996, giving 476*6 values. After that we have one more due to 9998 being = 2 mod 21.