OFFSET
0,1
COMMENTS
First 16 terms of clockwise spiral for odd numbers are as follows:
.
13--15--17--19
| |
11 1---3 21
| | |
9---7---5 23
|
31--29--27--25
.
a(n) comes from the third vertical.
Sequence found by reading the line from 5, in the direction 5, 27, in the square spiral whose vertices are the triangular numbers A000217. - Omar E. Pol, Dec 25 2011
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = A160050(4*n+3).
a(n) = (2*n+1)*(4*n+5).
a(n) = a(n-1) + 16*n + 6.
a(n) = 2*a(n-1) - a(n-2) + 16.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: (5 + 12*x - x^2)/(1 - x)^3. - Arkadiusz Wesolowski, Dec 25 2011
a(n) = A014635(n+1) - 1. - Omar E. Pol, Dec 25 2011
From Vaclav Kotesovec, Aug 18 2018: (Start)
Sum_{n>=0} 1/a(n) = 2/3 - Pi/12 - log(2)/6 = 0.289342748774193011891907697817...
Sum_{n>=0} (-1)^n / a(n) = (1 + sqrt(2))*Pi/12 - 2/3 - sqrt(2)*log(tan(Pi/8))/6 = 0.173114712692423461587883724528539... (End)
a(n) = A014106(2*n+1). - Rick L. Shepherd, Aug 06 2019
E.g.f.: (5 + 22*x + 8*x^2)*exp(x). - Elmo R. Oliveira, Oct 19 2024
MATHEMATICA
Table[(2n+1)(4n+5), {n, 0, 40}] (* Harvey P. Dale, Feb 06 2011 *)
CoefficientList[Series[(5 + 12 x - x^2)/(1 - x)^3, {x, 0, 40}], x] (* Vincenzo Librandi, May 23 2014 *)
PROG
(Magma) [8*n^2+14*n+5: n in [0..700]]; // Vincenzo Librandi, Feb 01 2011
(PARI) a(n)=8*n^2+14*n+5 \\ Charles R Greathouse IV, Dec 21 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Feb 01 2011
STATUS
approved