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.

A001148 Final digit of 3^n.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

Let G = {1,3,7,9}, and let the binary operator o be defined as: X o Y = least significant digit of the product XY, where X,Y belong to G. Then (G,o) is an Abelian group and 3 is a generator of this group. - K.V.Iyer, Apr 19 2009
3^n mod 10 and 3^n mod 20. - Zerinvary Lajos, Nov 25 2009
Continued fraction expansion of (243+17*sqrt(285))/4020 = 0.13183906... (see A178148). - Klaus Brockhaus, Apr 17 2011

Programs

Formula

Periodic with period 4.
From R. J. Mathar, Apr 13 2010: (Start)
a(n) = a(n-1) - a(n-2) + a(n-3).
G.f.: (1+2*x+7*x^2)/ ((1-x) * (1+x^2)). (End)
a(n) = 5 - (2+i)*(-i)^n - (2-i)*i^n, where i is the imaginary unit. Also a(n) = A001903(A159966(n)). - Bruno Berselli, Feb 08 2011
a(0)=1, a(1)=3, a(n) = 10 - a(n-2). - Vincenzo Librandi, Feb 08 2011