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.
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!)
A204816 Final nonzero digit of n^n in base 6. 1
1, 1, 4, 3, 4, 5, 1, 1, 4, 3, 4, 5, 4, 1, 4, 3, 4, 5, 3, 1, 4, 3, 4, 5, 4, 1, 4, 3, 4, 5, 1, 1, 4, 3, 4, 5, 1, 1, 4, 3, 4, 5, 1, 1, 4, 3, 4, 5, 4, 1, 4, 3, 4, 5, 3, 1, 4, 3, 4, 5, 4, 1, 4, 3, 4, 5, 1, 1, 4, 3, 4, 5, 4, 1, 4, 3, 4, 5, 1, 1, 4, 3, 4, 5, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
MATHEMATICA
f[0]=1; f[n_]:=Module[{m=n^n}, While[Mod[m, 6]==0, m=m/6]; Mod[m, 6]]; Table[f[i], {i, 0, 100}]
PROG
(PARI) a(n)=lift(Mod(n/6^valuation(n, 6), 6)^n) \\ Charles R Greathouse IV, Jan 23 2012
CROSSREFS
Sequence in context: A049788 A002558 A204671 * A204818 A099634 A203144
KEYWORD
nonn,easy,base
AUTHOR
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 May 24 06:28 EDT 2024. Contains 372772 sequences. (Running on oeis4.)