Find My Pattern!

How many positive integers x x are there that are less than 10000 10000 such that 2 x x 2 2^x - x^2 is divisible by 7 7 ?


The answer is 2857.

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.

1 solution

Ww Margera
Sep 24, 2014

Value of 2 x 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.

made it with ms excel

math man - 6 years, 7 months ago

Log in to reply

[ 10000*6/21]=2857

Nikola Djuric - 6 years, 6 months ago

[ 10000*6/21]=2857

Nikola Djuric - 6 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...