The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A204815 Final nonzero digit of n^n in base 5. 2
 1, 1, 4, 2, 1, 1, 1, 3, 1, 4, 4, 1, 1, 3, 1, 2, 1, 2, 4, 4, 1, 1, 4, 2, 1, 1, 1, 3, 1, 4, 1, 1, 1, 3, 1, 3, 1, 2, 4, 4, 1, 1, 4, 2, 1, 4, 1, 3, 1, 4, 4, 1, 1, 3, 1, 1, 1, 2, 4, 4, 1, 1, 4, 2, 1, 3, 1, 3, 1, 4, 1, 1, 1, 3, 1, 2, 1, 2, 4, 4, 1, 1, 4, 2, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 LINKS Table of n, a(n) for n=0..84. MATHEMATICA f[0]=1; f[n_]:=Module[{m=n^n}, While[Mod[m, 5]==0, m=m/5]; Mod[m, 5]]; Table[f[i], {i, 0, 100}] PROG (PARI) a(n)=lift(Mod(n/5^valuation(n, 5), 5)^n) \\ Charles R Greathouse IV, Jan 23 2012 CROSSREFS Sequence in context: A010312 A303599 A068930 * A247642 A144260 A097526 Adjacent sequences: A204812 A204813 A204814 * A204816 A204817 A204818 KEYWORD nonn,easy,base AUTHOR José María Grau Ribas, Jan 19 2012 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.

Last modified June 18 02:11 EDT 2024. Contains 373468 sequences. (Running on oeis4.)