OFFSET
0,3
COMMENTS
Vertex number of a square spiral similar to A195162.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
G.f.: x*(1+7*x+2*x^2) / ( (1+x)^2*(1-x)^3 ). - R. J. Mathar, Aug 07 2012
a(n) = (10*n^2 +8*n -3 +(4*n+3)*(-1)^n)/8. - Luce ETIENNE, Oct 14 2014
E.g.f.: (1/8)*((10*x^3 + 18*x -3)*exp(x) - (4*x - 3)*exp(-x)). - G. C. Greubel, Aug 23 2017
Sum_{n>=1} 1/a(n) = 5/9 + (sqrt(1-2/sqrt(5))/6 + sqrt(1+2/sqrt(5))/8)*Pi + 7*log(phi)*sqrt(5)/24 - 5*log(5)/48, where phi is the golden ratio (A001622). - Amiram Eldar, Aug 21 2022
MATHEMATICA
Table[(10*n^2 + 8*n - 3 + (4*n + 3)*(-1)^n)/8, {n, 0, 50}] (* G. C. Greubel, Aug 23 2017 *)
PROG
(Magma) [(10*n^2+8*n-3+(4*n+3)*(-1)^n )/8: n in [0..60]]; // Vincenzo Librandi, Oct 31 2014
(PARI) my(x='x+O('x^50)); Vec(x*(1+7*x+2*x^2)/((1+x)^2*(1-x)^3)) \\ G. C. Greubel, Aug 23 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Aug 03 2012
STATUS
approved