login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A136692 Final nonzero digit of n! in base 5. 14

%I

%S 1,1,2,1,4,4,4,3,4,1,2,2,4,2,3,4,4,3,4,1,4,4,3,4,1,1,1,2,1,4,4,4,3,4,

%T 1,2,2,4,2,3,4,4,3,4,1,4,4,3,4,1,2,2,4,2,3,3,3,1,3,2,4,4,3,4,1,3,3,1,

%U 3,2,3,3,1,3,2,1,1,2,1,4,4,4,3,4,1,2,2,4,2,3,4,4,3,4,1,4,4,3,4,1

%N Final nonzero digit of n! in base 5.

%e 6! = 720 decimal = 10340 quinary, so a(6) = 4.

%t Table[Module[{sp=Split[IntegerDigits[n!,5]]},If[sp[[-1,-1]]==0,sp[[-2, -1]], sp[[-1,-1]]]],{n,0,100}] (* _Harvey P. Dale_, Oct 26 2016 *)

%Y Cf. A000142, A136690, A136691, A136693, A136694, A136695, A136696, A008904, A136697, A136698, A136699, A136700, A136701, A136702.

%K base,easy,nonn

%O 0,3

%A _Carl R. White_, Jan 16 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 11 23:45 EDT 2020. Contains 336434 sequences. (Running on oeis4.)