1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 + 1 2 3 4 5 6 7 1 2 3 4 5 6 7 + 1 2 3 4 5 6 1 2 3 4 5 6 + 1 2 3 4 5 1 2 3 4 5 + 1 2 3 4 1 2 3 4 + 1 2 3 1 2 3 + 1 2 1 2 + 1 1
What is the unit digit of the sum above?
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.
First, we'll calculate the digit unit of each number, then we're going tu sum all of them. Let's start with 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 . Our attention is focused on the base's digit unit, and in this case it's 9 . There are two ways to calculate the digit unit of this enormous number. If you know that the sequence of power of 9 , so 9 , 8 1 , 7 2 9 ,... has also a sequence of unit digits, you're advantaged: the number will end with a 9 if the exponent is odd, instead the number will end with 1 if it's even. You can quickly understand that, since the exponent is odd, the number will end with 9 . But there is also another way to solve it, and personally I prefer this one: [ 1 2 3 4 5 6 7 8 9 × 1 2 3 4 5 6 7 8 9 × . . . × 1 2 3 4 5 6 7 8 9 ] 1 0 = [ 9 × 9 × 9 × . . . × 9 ] 1 0 . At this step we know that 9 × 9 = 8 1 so we can substitute each couple of 9 with a 1 . The 9 is repeated 1 2 3 4 5 6 7 8 9 times, and this is an odd number, so just one 9 will be left. Here is the next step: [ 1 × 1 × 1 × . . . × 1 × 9 ] 1 0 = [ 9 ] 1 0 . We can conclude that if we divide 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 by 1 0 we obtain 9 . For any of the numbers to sum the methods are all the same as shared above, so, I know, it's pretty boring. Let's calculate the digit number of 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 . In this case it's much better to use the first way, so we have to know that the sequence of unit digits of the power of 8 is: 8 , 4 , 2 , 6 , 8 , 4 , 2 , 6 , ... where the period 8 4 2 6 is repeated endlessly. Now another problem approaches: in this sequence, what digit will be in the 1 2 3 4 5 6 7 8 place? It's easier than it looks: since the period in made by 4 elements, we only have to discover what number multiple of 4 is the nearest to 1 2 3 4 5 6 7 8 . It can be also the same number because it's even, we only have to verify that you can divide it by 4. I'll verify it this way, by dividing it by 2 and verifying the result is still even. But if I calculate 2 1 2 3 4 5 6 7 8 I obtain an odd number, so it means that 1 2 3 4 5 6 7 8 is a multiple of 2 , but not of 4 . If any integer n is even but not multiple of 4 , then n − 2 and n + 2 are certainly multiples of 4 . In this case, it means that 1 2 3 4 5 6 7 6 is a multiple of 4: the number in the 1 2 3 4 5 6 7 6 position will be the last number of the sequence, so it will be 6 . The sequence will repeat, and we can conclude that the number in the 1 2 3 4 5 6 7 8 position is the second of the sequence, so it's 4 . This can be applied to all of the powers to sum: discover the unit digit sequence of the power of the number (and the number is the base's unit digit), and calculate wich number of the sequence will be in the position determined by the exponent. There are 3 particular powers in this expression that make we calculate the unit digit much more quickly: 1 2 3 4 5 6 1 2 3 4 5 6 , 1 2 3 4 5 1 2 3 4 5 and 1 2 3 4 1 2 3 4 . The unit digit sequence of the powers of 6 is 6 , 6 , 6 , 6 ,... so it will always be 6 . The same happens with 5 . Calculating the unit digits of 1 2 3 4 5 6 1 2 3 4 5 6 and 1 2 3 4 5 1 2 3 4 5 is, then, very easy: respectively, 6 and 5 . Also calculating the 1 2 3 4 1 2 3 4 unit digit is easier than the other cases: the unit digit sequence is 4 , 6 , 4 , 6 , ... (so it's like the 9 ) : the number will end with 4 if the exponent is odd, instead it will end with 6 . Since the exponent 1 2 3 4 is even the number will end with 6 . At the end, once we have substituted each power with its unit digit, we obtain: 9 + 4 + 3 + 6 + 5 + 6 + 7 + 6 + 1 = . . . 7 . We just wanted to know the unit digit that is 7 .
It's my first problem that I invented and posted, so I'm not very good at explaining xD. Tell me about any doubts you have!
Just some advice for formatting, 2 enters is a line break, but nice solution
Let x = 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 + 1 2 3 4 5 6 7 1 2 3 4 5 6 7 + 1 2 3 4 5 6 1 2 3 4 5 6 + 1 2 3 4 5 1 2 3 4 5 + 1 2 3 4 1 2 3 4 + 1 2 3 1 2 3 + 1 2 1 2 + 1 1 .
As sum of five odd numbers and four even numbers, x must be odd and thus x ≡ 1 ( m o d 2 ) .
Now Fermat's Little Theorem tells us that a 5 ≡ a ( m o d 5 ) which implies that a 4 n + m ≡ a m ( m o d 5 ) . Also by the definition of conguerence 5 k + a ≡ a ( m o d 5 ) and thus also ( 5 k + a ) 4 n + m ≡ a m ( m o d 5 ) .
Therefore x ≡ 4 3 + 3 2 + 2 3 + 1 0 + 0 1 + 4 2 + 3 3 + 2 0 + 1 1 ≡ 6 4 + 9 + 8 + 1 + 0 + 1 6 + 2 7 + 1 + 1 ≡ 4 + 4 + 3 + 1 + 0 + 1 + 2 + 1 + 1 ≡ 2 ( m o d 5 ) .
Since 2 and 5 are coprime, by the Chinese Remainder Theorem , the solution to { x ≡ 1 ( m o d 2 ) x ≡ 2 ( m o d 5 ) is unique ( m o d 1 0 ) .
It is easy to see that 7 is the solution.
Problem Loading...
Note Loading...
Set Loading...
Let the given sum be N . We need to find N m o d 1 0 .
N 9 ≡ 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 ≡ 9 1 2 3 4 5 6 7 8 9 ≡ ( 1 0 − 1 ) 1 2 3 4 5 6 7 8 9 ≡ − 1 (mod 10)
N 8 ≡ 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 ≡ 8 1 2 3 4 5 6 7 8 ≡ ( 1 0 − 2 ) 1 2 3 4 5 6 7 8 ≡ 2 4 n + 2 ≡ 6 × 4 ≡ 4 (mod 10) Since 2 4 n ≡ 6 (mod 10) , where n is an integer.
N 7 ≡ 1 2 3 4 5 6 7 1 2 3 4 5 6 7 ≡ 7 1 2 3 4 5 6 7 ≡ 7 1 2 3 4 5 6 7 m o d ϕ ( 1 0 ) ≡ 7 1 2 3 4 5 6 7 m o d 4 ≡ 7 3 ≡ 3 (mod 10) Since g cd ( 7 , 1 0 ) = 1 , Euler’s theorem applies Euler’s totient function ϕ ( 1 0 ) = 4
N 6 ≡ 1 2 3 4 5 6 1 2 3 4 5 6 ≡ 6 1 2 3 4 5 6 ≡ 6 (mod 10) All powers of 6 end with 6.
N 5 ≡ 1 2 3 4 5 1 2 3 4 5 ≡ 5 1 2 3 4 5 6 ≡ 5 (mod 10) All powers of 5 end with 5.
N 4 ≡ 1 2 3 4 1 2 3 4 ≡ 4 1 2 3 4 ≡ 4 2 n ≡ 6 (mod 10) Since 4 2 n ≡ 6 (mod 10) , where n is an integer.
N 3 ≡ 1 2 3 1 2 3 ≡ 3 1 2 3 ≡ 3 ( 1 0 − 1 ) 6 1 ≡ − 3 (mod 10)
N 2 ≡ 1 2 1 2 ≡ 2 1 2 ≡ 2 4 n ≡ 6 (mod 10)
N 1 ≡ 1 1 ≡ 1 (mod 10)
Therefore,
N ≡ N 9 + N 8 + N 7 + N 6 + N 5 + N 4 + N 3 + N 2 + N 1 ≡ − 1 + 4 + 3 + 6 + 5 + 6 − 3 + 6 + 1 ≡ 2 7 ≡ 7 (mod 10)
References