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.

A173960 Averages of four consecutive odd squares.

Original entry on oeis.org

21, 41, 69, 105, 149, 201, 261, 329, 405, 489, 581, 681, 789, 905, 1029, 1161, 1301, 1449, 1605, 1769, 1941, 2121, 2309, 2505, 2709, 2921, 3141, 3369, 3605, 3849, 4101, 4361, 4629, 4905, 5189, 5481, 5781, 6089, 6405, 6729, 7061, 7401, 7749, 8105, 8469
Offset: 1

Views

Author

Keywords

Comments

The averages of four consecutive even squares are in A027575.

Examples

			(1^2 + 3^2 + 5^2 + 7^2)/4 = 21.
		

Crossrefs

Cf. A027575.

Programs

Formula

a(n) = ((2*n-1)^2 + (2*n+1)^2 + (2*n+3)^2 + (2*n+5)^2)/4 = 4*n^2 + 8*n + 9.
From Colin Barker, Apr 15 2012: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: x*(21-22*x+9*x^2)/(1-x)^3. (End)
E.g.f.: exp(x)*(4*x^2 + 12*x + 9) - 9. - Elmo R. Oliveira, Nov 01 2024

Extensions

Formula corrected by R. J. Mathar, Mar 31 2010