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.

A070512 a(n) = n^4 mod 7.

Original entry on oeis.org

0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2, 4, 4, 2, 1, 0, 1, 2
Offset: 0

Views

Author

N. J. A. Sloane, May 13 2002

Keywords

Comments

Equivalently: n^(4*m + 4) mod 7. - G. C. Greubel, Apr 01 2016

Programs

Formula

From G. C. Greubel, Apr 01 2016: (Start)
a(n) = a(n-7).
G.f.: x*(1 +2*x +4*x^2 +2*x^4 + x^5)/(1 - x^7). (End)