4^178(4)^35(4)^7(4)^14(2*14)!(51*52*53*54*55*56) =6*4*4*6*4((51*52*53*54*55*56) =6 ans
=6*4*4*6*4*2*4= 6 ans
Can u pls elaborate a lil bit more...how come 81*82....86 2n =2*178 = 356 so it shud be juz 4^178*(356!) according to ur formula... also pls tell n = 1780/10 =178 means for finding last non-zero in 12!, n = 1??
we need last non zero digit of 1786! lets take 1st 10 digits 1.2.3.4.5.6.7.8.9.10 last non zero digit =2.3.4.5.6.7.8.9=8 last digit of 8^176=6 hence last digit of 1786!=last digit of 6.1.2.3.4.5.6=2 wth!! i feel like i am making a mistake somewhere some1 point out plzz
we need last non zero digit of 1786! lets take 1st 10 digits 1.2.3.4.5.6.7.8.9.10 last non zero digit =2.3.4.5.6.7.8.9=8 last digit of 8^176=6 hence last digit of 1786!=last digit of 6.1.2.3.4.5.6=2 wth!! i feel like i am making a mistake somewhere some1 point out plzz
I got where u r making mistake! According to u, 20! ll have 4 as its last non-zero digit right? But to ur surprise it's not it ll have 8 as its last non-zero digit! I was also making same mistake earlier but got to know this when i checked the no's one by one. try and see
Guys any idea, how to solve problem like this in an efficient way...I am able to solve this by following some pattern what is the last non zero digit of 1786!
means like in no. 183400, 4 is the last non-zero digit.
Right now i m playing with fx-991 MS calci, so i have full confidence on it Moreover, juz for u, take 15!, last significant digit is 8 but 16! has its last significant digit as 9 instead of 8!!! why? coz its not juz unit digit, digits r there LHS and RHS and so adding up, try out buddy.
Dude i guess u did a mistake here...n=2 right so it shud be (2*2)! = 4!
and by this formula ans is coming 4....I guess since calculator was giving some no. * 10^10 so last digit wasn't clear:banghead: i did it manually...its 4... nksbits was correct.
Juz for the benefit of other guys who haven't gone thru that post, m reproducing the concept given by Vineet.nitd here....
Next concept How to find the last non zero digit of x!?
The following explanation will ensure that the factorial of all the numbers is covered..
Let f(x) be the generating function representing the last non-zero digit of x! and g(x) represent the last digit of x, then we have:
f(x)= g(4^)*f() for x=10k
f(x)= g(4^)*f()*g(1.2.3) for x=10k+m (m is a natural number satisfying 0 f(x)= g(4^)*f()*g((1.2.3.4.6...)/2) for x=10k+m (m is a natural number satisfying 4 [] denotes the greatest integere function.
Remember that the above generating functions are by nature recursive and hence you need to use them that way for factorial of bigger numbers.
My advice would be that you by-heart these functions.
Let us see what the last non zero digit of 37! is?
Clearly it means you should follow the third case as explained above as m=7.
ok... my final solution to this problem we need last non-zero digit of 1786! this s last digit of 1780!*6!(consider only last digits of 1781,....) last non zero digit of 6!=2 now last digit of 1.2.3.4.5.6.7.8.9=8 this occurs 178 times so we need to find last digit of 8^178 but here we havent accounted for the digit changes by 20,30,40,50,60,.....till 1780 so we need to multiply by 178! hence we need last non zero digit of 178!*2*8^178 last digit of 8^178=last digit of 8^2=4 last digit of 178!=last digit of 8^170*8!*17! =last digit of 4*8!*17! =last digit of 4*8!*10!*7! =2*4*2=6
hence last nonzero digit is 6*2*4 =8 aaarghhh!! wth is the mistake!!!?? :banghead:
Yup, but for 20! only.....1786! has ans as 6 according to this concept, we ll have 8,4,3 and 2 in cyclic order for 10!, 20!, 30! ,40! and so on....but apply this formula and u ll get diff ans for 40!