OFFSET
0,2
COMMENTS
Sequence found by reading the line from 0, in the direction 0, 2,... and the same line from 0, in the direction 0, 10,..., in the square spiral whose vertices are the triangular numbers A000217.
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
Array read by rows: row n gives 8*n^2 + 2n, 8*(n+1)^2 - 6(n+1).
a(n) = 2*floor((n + 1/4)^2). [From Reinhard Zumkeller, Feb 07 2010]
G.f.: 2*x*(1+3*x)/((1-x)^3*(1+x)). [Colin Barker, Apr 26 2012]
EXAMPLE
Array begins:
0, 2
10, 20
36, 54
78, 104
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, May 03 2008
STATUS
approved