What is the last digit of: 3 1 0 0 0 0 ?
Find a pattern! There are a lot of patterns like this that you can find when calculating numerical powers and products, why is that?
Bonus challenge: How many 9's appear in the final product of 10000 9’s 9 9 9 9 ⋯ 9 × 9 ?
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.
Oh, hey, you're back :D
Log in to reply
Hey.. I never left... :P
Log in to reply
I'm pretty sure you did, though. I can't remember when exactly, but it was for a few days at least (Comrade otto's never coming back, I guess :( )
Log in to reply
@Manuel Kahayon – Yeah.... I don't remember the last time when he posted a one liner solution or a difficult problem here ..It was a long time ago.. :(...
Can you prove this cyclicity always holds?
Log in to reply
Going to repeat Sharky's question: can you prove it? You've asserted the cyclic nature but haven't justified it.
We can see that
3^1 = 3
3^2 = 9
3^3 =27
3^4=81
3^5 =243
Therefore the pattern is that
When power is of 4k+1 form last digit is 3
When power is of 4k+2 form last digit is 9
When power is of 4k+3 form last digit is 7
When power is of 4k form last digit is 1
Here power is 10000 which is of 4k type
So last digit is 1
u r de only person who could explain this to me: a 10 year old math lover
3 2 = − 1 m o d 1 0 ⟹ 3 1 0 0 0 0 = 1 m o d 1 0 [Ans]
For the bonus question: 9x9=81 99x9=891 999x9=8991 Following this pattern, there is always 1 less 9 in the product than in the original number. So, if we have 10,000 digits of 9, the final answer will have 9999 9's.
Let ϕ ( x ) denote the Euler Totient Function. Note that ϕ ( 1 0 ) = 4 . Thus, if g cd ( a , 1 0 ) = 1 , then by Euler's Theorem, we have
a 4 ≡ 1 ( m o d 1 0 )
We find that this is true for a = 3 . Now, onto the question. Note that
3 1 0 0 0 0 ≡ ( 3 4 ) 2 5 0 0 ( m o d 1 0 ) ≡ 1 2 5 0 0 ( m o d 1 0 ) ≡ 1 ( m o d 1 0 )
Thus, the final digit is 1.
Just as a quick request, could you explain phi in your answer? As this is a level 1 problem, I don't think everyone will know what that is.
Log in to reply
Fixed. I just wanted to make a proof that didn't evaluate 3 4 . :)
This reminded me of powers of i!
For this problem, I wrote out powers of 3 until 3^8. (I ran out of space on my desk... whoops!) I found that the last digit is the same for every fourth power. I Because 10000/4 has a remainder of 0, I reasoned that--like 3^0, 3^4 and 3^8-the last digit must be 1.
I'm psyched to have gotten a number theory question right! I'm usually fairly iffy about it!
For the bonus question, there's a beautiful theory I want to share. Usually we do multiply from the last digit, you can't tell how a specific digit presents until a lot of calculations are done. This question can be a example.
We first assume that the result has one digit more.(it can be 0 if necessary) Then put a decimal point after the first result digit. (0.999...x9=?.nnnn) Because 0.999...is between 8/9 and 9/9, the first digit should be 8, because 9 would be too big, 7 would be too small. Repeat the process(individually, different from the traditional process), the second digit and the follow are a bit different, there's already stands a digit to be multipled. It deserves a 9x9=...1,the second digit is 8(from earlier process)+1=9... the last digit has no come up, is 1+0=1. Problem completes now, 9999.
Examples about this theory: 071589x3 First digit:0.71589 is between 2/3 and 3/3....=2; Second digit:7x3 deserves 1, 0.1589 is between 0/3 and 1/3....1+0=1 Third:(1x3deserves)3+(between1/3and2/3)1=4; Fourth:(deserve)5+(between)2=7; Fifth:4+2=6; Sixth=7+0=7; Answer:214767
More examples: 06465x8 0+5=5;( 5/8=0.625,6/8=0.75) 8+3=1;(6x8=8;3/8=0.375,4/8=0.5) 2+5=7;(4x8=2;5/8=0.625,6/8=0.75) 8+4=2; 0+0=0; Answer:51720
012996x5 Comparing fractions:1/5=0.2,2/5=0.4... 0+0=0; 5+1=6; 0+4=4; 5+4=9; 5+3=8; 0+0=0 Answer:064980
Another version: Comparing fraction: 1/2=0.5 2x 087769872 Deserve: 064428644 Between:111111100 Sum: 175539744
Comparing fractions: 1/7=0.142857...2/7=0.285714... 3/7=0.428571...4/7=0.571428... 5/7=0.714285...6/7=0.857142... 7x 0299895794932 Deserve: 0433635938314 Between:2666645636210 Sum: 2099270564524
As you see, this method has a decisive advantage when the number gets big. (...in saving paperwork?)
3 power 4 ends with 1, so if we can divide 1000 by 4 without a reminder we get 1 on the end of result number. It's simple. and bonus chalange: we begin with small numbers, 9 * 9=81, 99 * 9=891, 999 * 9=8991, so we get induction. The result is 9999 9's.
pattern of last terms is 1(for 3^0), 3(for 3^1), 9(for 3^2), 7(for 3^3) which means that you have to divide the n exponent by 4 and the remainder will be either 0, 1, 2 or 3, which would tell you which is the last term of the operation...
Yes. I answer the same. Greetings!!!
In this pattern, it is found that every ones digit starts from 3, 9, 7, 1, and repeats on and on. If you want to be sure about this pattern, just multiply the ones digit by 3 from the number before, and you will notice these 4 numbers constantly repeating each other.
So, 1000(the power)/4(the cycle of numbers till a repeat) = 2500.
Since the answer is a whole number,
1
, the last number in the pattern of the four numbers, is the answer.
So one is the answer
This was the solution I gave for a similar question on quora !! Hope u like it It's the general method of solving any type of question ...involving cyclicity Here's the link for the complete answer .. https://www.quora.com/What-is-the-units-place-of-2013-2016/answer/P-Ramyashri?share=cbea2b6c&srid=h53Or
3^10000 = (3^2)^5000
3^2 = 9 = -1 (mod 10)
Bonus challenge: 9999 digits
Cyclicity As 10000 when divided by 4 leave remainder 0 it's last got will be 4
This is a one liner.(If you are familiar to modular arithmetic). Finding the last digit means to find the remainder when the given number is divided by 10, or in other words find the value of amod10 where a is the given no.
Here we need to find 3 1 0 0 0 0 mod10.
Since 3 and 10 are co prime,
3 ϕ ( 1 0 ) ≡ 1 m o d 1 0 [As a result of Euler's Theorem]
or, 3 4 ≡ 1 m o d 1 0
or, 3 1 0 0 0 0 ≡ 1 m o d 1 0 [Raising both sides to the 2500th power]
3^1=3, 3^2=9,3^3=27,3^4=81,3^5=243. Notice the cycle is 4 long and the last possible digits are 3,9,7, and 1. You can easily see 5 is wrong. Since 10,000 is obviously divisible by 4, it will have the same units digit as 3^4, which is 1.
note that the last digit of 3**n cycles through the the sequence (1,3,9,7) and that 1000 mod 4 = 0 and the 0th value of the sequence is 1
For 9**1000 we get a large number which contains 100 repetitions of the digit '9'
3^10000 = 9^5000
The last digit of 9 raised to any number will have only two possible numbers .
They are 1 & 9.
When the power is odd, (like 9^1,9^3... etc ) then the last digit is 9.
When the power is even, (like 9^2,9^4,9^6... etc) then the last digit is 1.
So the last digit of 3^10000 is 1
We know that 3 4 = 8 1
And 10000 is divisible by 4 (i.e 4*2500 = 10000), therefore:
3 4 ≡ 1 ( m o d 1 0 ) ⇒ 3 1 0 0 0 0 ≡ 1 ( m o d 1 0 )
The last digit of 3 1 0 0 0 0 is 1
The problem is equivalent to finding 3 1 0 0 0 0 m o d 1 0 .
3 1 0 0 0 0 ≡ 3 2 × 5 0 0 0 ≡ 9 5 0 0 0 ≡ ( 1 0 − 1 ) 5 0 0 0 ≡ ( − 1 ) 5 0 0 0 ≡ 1 (mod 10)
The last digits of the powers of 3 are cyclical with a period of 4: 3^0=1, 3^1=3, 3^2=9, 3^3=x7. Since 3^(4k)=xxx1 and 10000 is a multiple of 4, 3^10000=xxxxxxxxx1.
Just see that ( 3 5 ) 2 0 0 0 ≡ 1 2 0 0 0 ≡ 1 ( m o d 1 0 ) . That's all.
For the bonus challenge take ( 1 0 1 0 0 0 0 − 1 ) ⋅ 9 = 9 ⋅ 1 0 1 0 0 0 0 − 9 = 8 9 9 … 1 . So the digit 9 appears 9 9 9 9 times.
1 You can use Euler's theorem ,(Euler totient function) like Sharky has very good done.
2 Another way, 3 2 = 9 ≡ ( − 1 ) mod(10) ⇒ 3 1 0 0 0 0 = ( 3 2 ) 5 0 0 0 ≡ ( − 1 ) 5 0 0 0 = 1 mod(10)
3 Use Charmichael function 3 4 = 8 1 ≡ 1 mod (10) ⇒ 3 1 0 0 0 0 = ( 3 4 ) 2 5 0 0 ≡ 1 2 5 0 0 = 1 mod(10)
4 Use Bezout identityand Euler algorithm and Newton Bynomial theorem... 1 0 − 3 ⋅ 3 = 1 ⇒ ⋅ 3 2 = 1 0 − 1 ⇒ 3 1 0 0 0 0 0 = ( 3 2 ) 5 0 0 0 0 = ( 1 0 − 1 ) 5 0 0 0 0 = ( 0 5 0 0 0 0 ) 1 0 5 0 0 0 0 − ( 1 5 0 0 0 0 ) 1 0 4 9 9 9 9 + ⋯ + ( 5 0 0 0 0 5 0 0 0 0 ) 1 0 0 ≡ 1 mod(10)
5 Use chinese remainder theorem (exercise for the reader) 3 ≡ 1 mod(2) , 3 ≡ − 2 mod(5) . . .
But why is it cyclic. and why 4?
It follows the powers of i and the subsequent decimals generated by the power when divided by 4. i^1=3^1=1/4=.25 Last digit is 3 i^2=3^2=2/4=.50 Last digit is 9 i^3=3^3=3/4=.75 Last digit is 7 i^4=3^4=4/4=1.0 Last digit is 1
Then it started all over again. So i^1000=3^1000=1000/4=250.0 So the last digit is 1. In summary, just divide the power by 4 and see the corresponding demicals as shown above.
Problem Loading...
Note Loading...
Set Loading...
Since 3 4 = 8 1 , hence 3 4 raised to any integral power would end in 1 only since 1 raised to any power would be 1 only or ( 3 4 ) n has it's unit digit as 1 . For this question n = 2 5 0 0 .
This pretty much explains the cyclicity in the unit digits when 3 is raised to any power. For n ∈ Z + ∪ { 0 } , unit digit of the number of the form: 3 4 n + 1 = 3 4 n ⋅ 3 1 = ends in 1 3 4 n ⋅ 3 will be 3 3 4 n + 2 = 3 4 n ⋅ 3 2 = ends in 1 3 4 n ⋅ 9 will be 9 3 4 n + 3 = 3 4 n ⋅ 3 3 = ends in 1 3 4 n ⋅ 2 7 will be 7
Bonus Challenge(Generalisation):-
Note n times 9 9 9 ⋯ 9 9 = 1 0 n − 1 ∴ n times 9 9 9 ⋯ 9 9 × 9 = = = = ( 1 0 n − 1 ) × 9 1 0 n × 9 − 9 9 n times 0 0 0 ⋯ 0 0 − 9 8 (n-1) times 9 9 9 ⋯ 9 9 1 ( Digitwise subtraction )
So for n = 1 0 0 0 0 , 10000 9’s 9 9 9 9 ⋯ 9 × 9 will contain 1 0 0 0 0 − 1 = 9 9 9 9 9’s .