The large number above is formed by concatenating one 1, two 2's, three 3's, four 4's, ... , one billion 's in that order.
Find the remainder when this larger number is divided by 3.
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.
A well known rule for whether a number is divisible by 3 is whether the sum of its digits is divisible by 3 . This can be extended to: n m o d 3 = digital root ( n ) m o d 3 This is easily proven by the fact that 1 0 n ÷ 1 has a remainder of 3 for any positive integer n . For example, we'll look at the number 4 7 8 : 4 7 8 m o d 3 = [ 4 0 0 + 7 0 + 8 ] m o d 3 = [ 4 × ( 1 0 0 m o d 3 ) + 7 × ( 1 0 m o d 3 ) + 8 ] m o d 3 = [ 4 × ( 1 ) + 7 × ( 1 ) + 8 ] m o d 3 = [ 4 + 7 + 8 ] So to find the remainder on dividing by 3 of the large number in the question, we will find the remainder on dividing by 3 of the digital root of the number: 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 … 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 … 1 0 0 0 0 0 0 0 0 0 m o d 3 = digital root ( 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 … 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 … 1 0 0 0 0 0 0 0 0 0 ) m o d 3 = ( 1 + 2 + 2 + 3 + 3 + 3 + 4 + 4 + 4 + 4 + ⋯ + 1 0 0 0 0 0 0 0 0 0 + 1 0 0 0 0 0 0 0 0 0 + ⋯ + 1 0 0 0 0 0 0 0 0 0 ) m o d 3 = ( 1 + 2 × 2 + 3 × 3 + 4 × 4 + ⋯ + 1 0 0 0 0 0 0 0 0 0 × 1 0 0 0 0 0 0 0 0 0 ) m o d 3 = ( 1 + 2 2 + 3 2 + 4 2 + 5 2 + 6 2 + ⋯ + 1 0 0 0 0 0 0 0 0 0 2 ) m o d 3 = [ ( 1 m o d 3 ) + ( 2 2 m o d 3 ) + ( 3 2 m o d 3 ) + ( 4 2 m o d 3 ) + ( 5 2 m o d 3 ) + ( 6 2 m o d 3 ) + ⋯ + ( 1 0 0 0 0 0 0 0 0 0 2 m o d 3 ) ] m o d 3 Now we have to see what remainder we get from each term on dividing by 3 :
This means we get a pattern of 1s and 0s in our sum: [ ( 1 m o d 3 ) + ( 2 2 m o d 3 ) + ( 3 2 m o d 3 ) + ( 4 2 m o d 3 ) + ( 5 2 m o d 3 ) + ( 6 2 m o d 3 ) + ⋯ + ( 1 0 0 0 0 0 0 0 0 0 2 m o d 3 ) ] m o d 3 = 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + ⋯ + 1 + 1 + 0 + 1 m o d 3 Since 1000000000 divided by 3 gives 333333333 with remainder 1, our sum equals: [ ( 1 + 1 + 0 ) × 3 3 3 3 3 3 3 3 3 + ( 1 0 0 0 0 0 0 0 0 0 2 m o d 3 ) ] m o d 3 = ( 2 × 3 3 3 3 3 3 3 3 3 + 1 ) m o d 3 = 1 Since 333333333 is divisible by three, this term disappears when taking the remainder on dividing by three, leaving only the 1 from the 1 0 0 0 0 0 0 0 0 0 2 .
Therefore the final answer is 1 .