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.

A001903 Final digit of 7^n.

Original entry on oeis.org

1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1, 7, 9, 3, 1
Offset: 0

Views

Author

Keywords

Comments

Period 4: repeat [1, 7, 9, 3]. - Joerg Arndt, Aug 12 2014

Crossrefs

Programs

Formula

a(n) = 7^n mod 10. - Zerinvary Lajos, Nov 03 2009
From R. J. Mathar, Apr 20 2010: (Start)
a(n) = a(n-1) - a(n-2) + a(n-3) for n > 2.
G.f.: ( 1+6*x+3*x^2 ) / ( (1-x)*(1+x^2) ). (End)
a(n) = 10 - a(n-2) for n > 1. - Vincenzo Librandi, Feb 08 2011
From Bruno Berselli, Feb 08 2011: (Start)
a(n) = 5 - (2-i)*(-i)^n - (2+i)*i^n, where i=sqrt(-1).
a(n) = A001148(A159966(n)). (End)
a(n) = A010879(A000420(n)). - Michel Marcus, Jul 06 2016
E.g.f.: 2*sin(x) - 4*cos(x) + 5*exp(x). - Ilya Gutkovskiy, Jul 06 2016