login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A136692 Final nonzero digit of n! in base 5. 14
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, 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, 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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
EXAMPLE
6! = 720 decimal = 10340 quinary, so a(6) = 4.
MATHEMATICA
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 *)
CROSSREFS
Sequence in context: A345674 A296337 A308432 * A368673 A219194 A234306
KEYWORD
base,easy,nonn
AUTHOR
Carl R. White, Jan 16 2008
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 08:28 EDT 2024. Contains 371927 sequences. (Running on oeis4.)