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.

A154139 Indices k such that 4 plus the k-th triangular number is a perfect square.

Original entry on oeis.org

0, 6, 9, 39, 56, 230, 329, 1343, 1920, 7830, 11193, 45639, 65240, 266006, 380249, 1550399, 2216256, 9036390, 12917289, 52667943, 75287480, 306971270, 438807593, 1789159679, 2557558080, 10427986806, 14906540889, 60778761159, 86881687256
Offset: 1

Views

Author

R. J. Mathar, Oct 18 2009

Keywords

Comments

Also numbers n such that (ceiling(sqrt(n*(n+1)/2)))^2 - n*(n+1)/2 = 4. - Ctibor O. Zizka, Nov 10 2009

Examples

			0*(0+1)/2+4 = 2^2. 6*(6+1)/2+4 = 5^2. 9*(9+1)/2+4 = 7^2. 39*(39+1)/2+4 = 28^2.
		

Crossrefs

Programs

Formula

a(n) = a(n-1) + 6*a(n-2) - 6*a(n-3) - a(n-4) + a(n-5).
G.f.: x^2*(6 +3*x -6*x^2 -x^3)/((1-x)*(x^2-2*x-1)*(x^2+2*x-1)) = 1 + 1/2*(4+11*x)/(x^2-2*x-1) + 1/2/(x-1) + 1/2*(-3+2*x)/(x^2+2*x-1).
For n>4, a(n) = 6*a(n-2) - a(n-4) + 2. - Ctibor O. Zizka, Nov 10 2009

Extensions

a(17)-a(18) from Emeric Deutsch, Oct 31 2009
a(19)-a(25) from Donovan Johnson, Nov 01 2010
More terms from Max Alekseyev, Jan 24 2012