+0  
 
0
38
1
avatar

What number factorial, i.e. "n!" has 222,222 trailing zeros? Thank you for help.

 Feb 18, 2020
 #1
avatar
+1

OK, young person. I wrote this short computer code just to solve your problem !!!

 

e=222222;a=4*e; c=round(log(a) / log(5)); d=sumfor(n, 1, c, int(a / (5^n)));if(d==e, goto end,0);a++;if(a<=5*e, goto3, 0);end:print"Integer is  =",a,"!";print"Trailing 0s=",d

 

OUTPUT =Integers are   = 888,900!, 888,901!, 888,902!, 888,903! and 888,904![All 5 integers end in 222,222 zeros!]
 

 Feb 18, 2020

21 Online Users

avatar