When 30! is computed it ends in 7 zeroes. find the digit that immediately precedes these zeroes.
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.
Would you do the same, were it 2014 instead of 30??
Log in to reply
-_- Do you know of an easier waY? If yes, post it
Log in to reply
I don't, I was asking Adarsh, if they knew.
Log in to reply
@Satvik Golechha – no I wouldn't do it this way if it were 2014 and I don't know any other way.Sorry.
what i came up with was like this
1x3x4x6x7x8x9 and i got 8 as the last digit (excluding 2 and 5 because they contribute for 0)
when i did 11x13x14x16x17x18x19 then again i got 8 as last digit ;similarly for the twenties. so i concluded 8 as answer.
Log in to reply
@Afreen Sheikh – 8 * 8 * 8 ends with 2, isn't it so?
Log in to reply
@Vijay Bhaskar – i agree with u...but i did consider the 22,25,12,15 part as well after that
Actually I got a formula to do it ,
⌊ 5 N ⌋ ! × 2 ⌊ 5 N ⌋ × ( N m o d 5 ) !
Where : N → The number ( N ! ) whose last non-zero digit we have to calculate.
1 2 3 4 5 6 7 |
|
Problem Loading...
Note Loading...
Set Loading...
F i r s t , p r i m e f a c t o r i s e 3 0 ! , y o u w i l l g e t : 2 2 6 ∗ 3 1 4 ∗ 5 7 ∗ 7 4 ∗ 1 1 2 ∗ 1 3 2 ∗ 1 7 ∗ 1 9 ∗ 2 3 ∗ 2 9 W h i c h c a n b e w r i t t e n a s : 2 1 9 ∗ 3 1 4 ∗ 7 4 ∗ 1 1 2 ∗ 1 3 2 ∗ 1 7 ∗ 1 9 ∗ 2 3 ∗ 2 9 ∗ 1 0 0 0 0 0 0 0 W h e n y o u c a l c u l a t e t h e u n i t d i g i t o f : 2 1 9 ∗ 3 1 4 ∗ 7 4 ∗ 1 1 2 ∗ 1 3 2 ∗ 1 7 ∗ 1 9 ∗ 2 3 ∗ 2 9 Y o u w i l l g e t 8 . ⟹ i t i s 8 0 0 0 0 0 0 0 . T h u s , t h e f i r s t n o n z e r o d i g i t i s 8