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.

A205185 Period 6: repeat [1, 8, 9, 8, 1, 0].

Original entry on oeis.org

1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8, 9, 8, 1, 0, 1, 8
Offset: 1

Views

Author

Ant King, Jan 24 2012

Keywords

Comments

The terms of this sequence are the units' digits of the indices of those nonzero triangular numbers that are also perfect squares (A001108).

Examples

			As the fourth nonzero triangular number that is also a perfect square is A000217(288), and 288 has units' digit A010879(288)=8, then a(4)=8.
		

Crossrefs

Programs

Formula

G.f.: x*(1+7x+x^2) / ((1-x)*(1+x)*(1-x+x^2)).
a(n) = a(n-6) for n>6.
a(n) = 9-a(n-3) for n>3.
a(n) = a(n-1) - a(n-3) + a(n-4) for n>4.
a(n) = 1/6*(27+(-1)^n*(5-32*cos(2*n*Pi/3))).