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.

A138959 a(n) = 8^n mod 5^n.

Original entry on oeis.org

0, 3, 14, 12, 346, 1518, 12144, 65902, 370966, 1405228, 9288699, 45012717, 115961111, 439407638, 3515261104, 28122088832, 102906398156, 365487513373, 1398021200734, 14998866871497, 24623503331351, 387722889932058, 1194434486643964, 7171290102136087
Offset: 0

Views

Author

N. J. A. Sloane, May 20 2008

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_]:=PowerMod[8,n,5^n]; Array[a,24,0] (* James C. McMahon, Jun 23 2025 *)
  • PARI
    a(n) = lift(Mod(8, 5^n)^n); \\ Michel Marcus, Feb 20 2018
  • Sage
    [power_mod(8,n,5^n) for n in range(0,24)] # Zerinvary Lajos, Nov 28 2009