cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A204819 Final nonzero digit of n^n in base 9.

Original entry on oeis.org

1, 1, 4, 3, 4, 2, 1, 7, 1, 1, 1, 5, 1, 4, 7, 6, 7, 8, 1, 1, 4, 3, 4, 2, 1, 7, 1, 3, 1, 5, 1, 4, 7, 6, 7, 8, 1, 1, 4, 3, 4, 2, 1, 7, 1, 8, 1, 5, 1, 4, 7, 6, 7, 8, 1, 1, 4, 3, 4, 2, 1, 7, 1, 1, 1, 5, 1, 4, 7, 6, 7, 8, 1, 1, 4, 3, 4, 2, 1, 7, 1, 1, 1, 5, 1
Offset: 0

Views

Author

Keywords

Programs

  • Mathematica
    f[0]=1;f[n_]:=Module[{m=n^n},While[Mod[m,9]==0,m=m/9];Mod[m,9]];y=Table[f[i],{i,0,100}]
    Join[{1},Mod[#/10^IntegerExponent[#],10]&/@Table[FromDigits[ IntegerDigits[ n^n,9]],{n,100}]] (* Harvey P. Dale, Jan 30 2021 *)