Isn't there a shortcut?

What is the remainder when 999 , 999 , 999 , 999 , 987 999,999,999,999,987 is divided by 128?


The answer is 115.

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

Aaron Tsai
May 11, 2016

Note that 128 = 2 7 128=2^{7} . For a number to be divisible by 2 n 2^{n} , the last n n digits have to be divisible by 2 n 2^{n} .

The multiple of 2 7 2^{7} closest to 999 , 999 , 999 , 999 , 987 999,999,999,999,987 is

999 , 999 , 999 , 999 , 987 + 13 = 1 , 000 , 000 , 000 , 000 , 000 999,999,999,999,987+13=1,000,000,000,000,000

since 0000000 0000000 is divisible by 128 128 .

Therefore, 999 , 999 , 999 , 999 , 987 13 ( m o d 128 ) 115 ( m o d 128 ) 999,999,999,999,987 \equiv -13 \pmod{128} \equiv \boxed {115} \pmod{128}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...