Let the remainder when is divided by be . Find the digit sum of .
The digit sum of a number is the sum of the number's digits. For instance, has a digit sum of because
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.
I did it using programming. (a b) mod c=((a mod c) (b mod c)) mod c.
Here, put 'b' as 2 and 'c' as 1,000,000,000. compute 'a' iteratively by multiplying it by 2.
Note : It requires 64 bit integers to process the value of 'c'
Took 0.251 s on Codeblocks C++ to get the answer : 1073741824
Alter : Do on Wolfram!.