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.

A229522 Final digit (in decimal system) of (n^n)^n, i.e., (n^n)^n mod 10.

Original entry on oeis.org

1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6
Offset: 1

Views

Author

Keywords

Comments

Periodic sequence with period 10.

Crossrefs

Cf. A002489, A120962, A364789 (initial digit).

Programs

  • Mathematica
    Table[PowerMod[n^n, n, 10], {n, 200}]
  • PARI
    a(n)=n%=10; lift(Mod(n,10)^n^n) \\ Charles R Greathouse IV, Dec 27 2013
    
  • Python
    def A229522(n): return (0, 1, 6, 3, 6, 5, 6, 7, 6, 9)[n%10] # Chai Wah Wu, Aug 10 2023

Formula

a(n) = A120962(A002489(n)). - Michel Marcus, Aug 09 2023