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.

A056849 Final digit of n^n.

Original entry on oeis.org

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

Views

Author

Robert G. Wilson v, Aug 30 2000

Keywords

Comments

Cyclic with a period of 20.
Also decimal expansion of 147656369016365674900/(10^20-1). - Bruno Berselli, Sep 27 2021

References

  • R. Euler and J. Sadek, "A Number That Gives The Units Of n^n", Journal of Recreational Mathematics, vol. 29(3), 1998, pp. 203-4.

Crossrefs

Programs

  • Magma
    [Modexp(n, n, 10): n in [1..100]]; // Bruno Berselli, Sep 27 2021
    
  • Maple
    seq(n &^ n mod 10, n=1..120);
  • Mathematica
    Table[PowerMod[n, n, 10], {n, 1, 100}]
  • PARI
    a(n)=lift(Mod(n,10)^n) \\ Charles R Greathouse IV, Dec 29 2012
    
  • Python
    def a(n): return pow(n, n, 10)
    print([a(n) for n in range(1, 101)]) # Michael S. Branicky, Sep 13 2022