Find sum of last 4 digits of 3^3015.
take mod 10^4
can you explain how?
maybe use binomial thm if you're not familiar wid congruences
can you explain how? :p
\[\large 3^{3015} = 3\cdot 3^{3014} = 3(3)^{2\times 1507} =3(9)^{ 1507} = 3(10-1)^{1507}\] expand
I guess it will be 1507 only?
I mean 1507*3
im getting 8907
\[C(1507,0)(10^{1507})({-1}^0) + C(1504,1)(10^{1506})(-1)^1+C(1504,2)(10^{1506})(-1)^2...\]
go from the other direction
\[ C(1507,0) (-1)^{1507}+ C(1507,1)({-1})^{1506}(10)+ C(1507,2)({-1})^{1505}(10)^2\]
and so on
so on until you get 10^4 term
you can ignore all other terms because they dont affect last four digits
I see..:O so it would be \[\Huge \sum_{k=1}^{k=4} C(1507,k)\] ?
dont forget 3 dont forget alternate signs because of -1
also the index must start from 0 and end at 3
so..... \[\Huge \sum_{k=1}^{k=4} (-1)^kC(1507,k)\]
oh yeah..0 to 3..the limits
\[\Huge \sum_{k=0}^{k=3} (-1)^kC(1507,k)\]
times 3
yep!
do we have \[(-1+10)^{1507} = \sum\limits_{k=0}^{1507} \binom{1507}{k}(-1)^{1507-k}10^k\] ?
I got it..but I think the index should be from 0 to 4?
0 to 3 will do
10^0 ...10^1 ...10^2...10^3...10^4..till 10^4 there are 5 terms....
there is no harm in taking more terms.. its just useless thats all
there is harm
10^4*(stuff) is divisible by 10^4 no harm
do we have to take first 4 terms or till 10^4? earlier you said we gotta expand till 10^4...
if you do mod 10^4 at each step you are ok...but if you don't then you will have problems
there is subtraction in this problem
expand till you get 10^4
also the calculations are big in this expansion...without calculator its tedious..its an examination question where calculators usually aren't allowed so...
10^4 mod 10^4 = 0 so the term that produces 10^4 as factor is not really required
the moment you reach five digit number, you can ignore every thing except last four digits
2309480293840 = 3840 in mod 10^4
you can work first 3 binomial coefficients easily by hand i guess
I see..that makes it crystal clear :D thanks a lot for your efforts :) @rational @Zarkon !
you're not even allowed shop calculator for working factorials etc ?
nope :|
oh btw, C(1507,2) = 1134771 which is itself >10^4 ?
then this problem should not be given in exam.. i see it is bit painful to work (1507 C 3) by hand because it is easy to make mistake while multiplying 1507*1506*1505 http://www.wolframalpha.com/input/?i=%283*%5Csum%5Climits_%7Bk%3D0%7D%5E3+%28%281507+choose+k%29%28-1%29%5E%281507-k%2910%5Ek%29%29+mod+10%5E4
`C(1507,2) = 1134771 which is itself >10^4 ?` what good is this observation ?
you said "he moment you reach five digit number, you can ignore every thing except last four digits"
tell me this what are the last four digits of number 10^4*3498573498753498574398 + 0001 ?
4399?
sure ? look below : 10^4*3498573498753498574398 + 0001 34985734987534985743980000 + 0001
oh..I see :P
last four digits of 10^4*3498573498753498574398 + abcd is abcd
yep.
it is easy to convince ourself... clearly multiplying by 10^4 shifts all the digits to left by four decimal places producing four zeroes at the end.
yep convinced..so..
look at binomial expansion \[\begin{align}(-1+10)^{1507} &= \sum\limits_{k=0}^{1507} \binom{1507}{k}(-1)^{1507-k}10^k\\~\\&= \sum\limits_{k=0}^{3} \binom{1507}{k}(-1)^{1507-k}10^k+\color{blue}{ \sum\limits_{k=4}^{1507} \binom{1507}{k}(-1)^{1507-k}10^k}\end{align}\]
you can factor out 10^4 from that blue part
oh I see..so its not contributing..clear..:D
Join our real-time social learning platform and learn together with your friends!