OFFSET
0,3
COMMENTS
Vertex number of a square spiral similar to A195160.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
G.f.: -x*(1+6*x+2*x^2) / ( (1+x)^2*(x-1)^3 ). - R. J. Mathar, Aug 07 2012
a(n) = ( 18*n^2+14*n-5+(6*n+5)*(-1)^n )/16. - Luce ETIENNE, Oct 14 2014
MATHEMATICA
LinearRecurrence[{1, 2, -2, -1, 1}, {0, 1, 7, 11, 23}, 70] (* Harvey P. Dale, Jun 29 2023 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Aug 03 2012
STATUS
approved