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.

A056969 a(n) = 10^n modulo n.

Original entry on oeis.org

0, 0, 1, 0, 0, 4, 3, 0, 1, 0, 10, 4, 10, 2, 10, 0, 10, 10, 10, 0, 13, 12, 10, 16, 0, 22, 1, 4, 10, 10, 10, 0, 10, 32, 5, 28, 10, 24, 25, 0, 10, 22, 10, 12, 10, 8, 10, 16, 31, 0, 31, 16, 10, 28, 10, 16, 31, 42, 10, 40, 10, 38, 55, 0, 30, 34, 10, 4, 34, 60, 10, 64, 10, 26, 25, 44, 54, 40
Offset: 1

Views

Author

Henry Bottomley, Jul 20 2000

Keywords

Examples

			a(7) = 3 since 10000000 = 7*1428571+3
		

Crossrefs

Cf. k^n mod n: A015910 (k=2), A066601 (k=3), A066602 (k=4), A066603 (k=5), A066604 (k=6), A066438 (k=7), A066439 (k=8), A066440 (k=9), this sequence (k=10), A066441 (k=11), A066442 (k=12), A116609 (k=13).

Programs

  • Maple
    seq(irem(10^n,n),n=1..78); # Zerinvary Lajos, Apr 20 2008
  • Mathematica
    Table[PowerMod[10, n, n], {n, 80} ]
  • PARI
    a(n) = lift(Mod(10, n)^n); \\ Michel Marcus, Oct 19 2017

Formula

a(n) = 10*A056968(n) mod n = A011557(n) mod n.