OFFSET
0,2
COMMENTS
Arises from middle column 4^2, 12^2, 24^2, ... of following triangle: :
3^2 + 4^2 = 5^2
10^2 + 11^2 + 12^2 = 13^2 + 14^2
21^2 + 22^2 + 23^2 + 24^2 = 25^2 + 26^2 + 27^2
36^2 + 37^2 + 38^2 + 39^2 + 40^2 = 41^2 + 42^2 + 43^2 + 44^2
...
REFERENCES
C. Stanley Ogilvy and John T. Anderson, Excursions in Number Theory, Oxford University Press, NY, 1966, pp. 90-92.
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
G.f.: 16*x*(1+4*x+x^2)/(1-x)^5. - Colin Barker, Apr 22 2012
a(n) = 16*A000537(n) = 16*(n*(n+1)/2)^2 = 16*A000217(n)^2 = A046092(n)^2. - Bruce J. Nicholson, Jun 05 2017
a(n) = Integral_{x=1..2*n+1} (x^3-x) dx. - César Aguilera, Jun 27 2020
From Elmo R. Oliveira, Aug 14 2025: (Start)
E.g.f.: 4*x*(2 + x)*(2 + 6*x + x^2)*exp(x).
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5).
From Amiram Eldar, Feb 03 2026: (Start)
Sum_{n>=1} 1/a(n) = Pi^2/12 - 3/4.
Sum_{n>=1} (-1)^(n+1)/a(n) = 3/4 - log(2). (End)
MATHEMATICA
CoefficientList[Series[16 x (1 + 4 x + x^2) / (1 - x)^5, {x, 0, 33}], x] (* Vincenzo Librandi, Nov 18 2016 *)
Table[(2n(n+1))^2, {n, 0, 30}] (* Harvey P. Dale, Jan 19 2019 *)
PROG
(PARI) a(n) = { (2*n*(n + 1))^2 } \\ Harry J. Smith, Jul 03 2009
(Magma) [(2*n*(n+1))^2: n in [0..30]]; // Vincenzo Librandi, Nov 18 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jason Earls, Mar 25 2001
EXTENSIONS
Name corrected by Harry J. Smith, Jul 03 2009
STATUS
approved
