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.

A070403 a(n) = 7^n mod 9.

Original entry on oeis.org

1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4
Offset: 0

Views

Author

N. J. A. Sloane, May 12 2002

Keywords

Comments

Also the digital root of 7^n. If we convert this to a repeating decimal 0.174174..., we get the rational number 58/333. - Cino Hilliard, Dec 31 2004
A141722 (1, 25, 121, 505, 2041, 8185) mod 9. Note A141722 = 10*A000975(2n) + A000975(2n+1). - Paul Curtz, Sep 15 2008
Digital root of the powers of any number congruent to 7 mod 9. - Alonso del Arte, Jan 26 2014

References

  • Cecil Balmond, Number 9: The Search for the Sigma Code. Munich, New York: Prestel (1998): 203.

Crossrefs

Cf. Digital roots of powers of c mod 9: c = 2, A153130; c = 4, A100402; c = 5, A070366; c = 8, A010689.

Programs

Formula

From R. J. Mathar, Feb 23 2009: (Start)
G.f.: (1+7*x+4*x^2)/((1-x)*(1+x+x^2)).
a(n+1) - a(n) = 3*A099837(n+3).
a(n) = 4 - 3*A049347(n). (End)
a(n) = a(n-3) for n>3. - G. C. Greubel, Mar 19 2016
a(n) = 4-2*sqrt(3)*sin((2*n+2)*Pi/3). - Wesley Ivan Hurt, Jun 09 2016
a(n) = A010888(7*a(n-1)). - Stefano Spezia, Mar 20 2025