Concatenated Pythagoras Triplet

Let N = 345345345.......... N=\overline{345345345..........} be a 300 300 digit number. What is the remainder when N is divided by 999 999 ?


The answer is 534.

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

N N can be expressed as:

N = 345 ( 1 + 1 0 3 + 1 0 6 + . . . + 1 0 297 N = 345(1 + 10^3 + 10^6+...+10^{297}

It is noted that 1 0 3 i = ( 1 + 999 ) i 1 0 3 i 1 ( m o d 999 ) 10^{3i} = (1+999)^i \Rightarrow 10^{3i} \equiv 1 \pmod {999}

N 345 ( 100 ) ( m o d 999 ) [ 34 ( 1 + 999 ) + 500 ] ( m o d 999 ) 534 ( m o d 999 ) \Rightarrow N \equiv 345(100) \pmod {999} \equiv [34(1+999) +500] \pmod {999} \equiv \boxed {534} \pmod {999}

awesome and fantastico!!

Adarsh Kumar - 6 years, 8 months ago

S \color{#D61F06}{S} U U U U U U U U U U U \color{#3D99F6}{UUUUUUUUUUU} P \color{#20A900}{P} E \color{#624F41}{E} R \color{#333333}{R} B \color{#D61F06}{B}

jaiveer shekhawat - 6 years, 7 months ago

Did the same!

Kartik Sharma - 6 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...