login
a(0) = 1, a(n) = 32*n^2 + 2 for n > 0.
5

%I #54 May 07 2024 06:08:52

%S 1,34,130,290,514,802,1154,1570,2050,2594,3202,3874,4610,5410,6274,

%T 7202,8194,9250,10370,11554,12802,14114,15490,16930,18434,20002,21634,

%U 23330,25090,26914,28802,30754,32770,34850,36994,39202,41474,43810,46210,48674,51202

%N a(0) = 1, a(n) = 32*n^2 + 2 for n > 0.

%C From _Omar E. Pol_, Apr 21 2021: (Start)

%C Sequence found by reading the line segment from 1 to 34 together with the line from 34, in the direction 34, 130, ..., in the rectangular spiral whose vertices are the generalized 18-gonal numbers A274979.

%C The spiral begins as follows:

%C 46_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _18

%C | |

%C | 0 |

%C | |_ _ _ _ _ _ _ _ _ _ _ _ _ _|

%C | 1 15

%C |

%C 51

%C (End)

%H Bruno Berselli, <a href="/A010021/b010021.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (3,-3,1).

%F G.f.: (1+x)*(1+30*x+x^2)/(1-x)^3. [_Bruno Berselli_, Feb 07 2012]

%F a(n) = A005893(4n) = A008527(2n); a(n+1) = A108100(2n+2). [_Bruno Berselli_, Feb 07 2012]

%F E.g.f.: (x*(x+1)*32+2)*e^x-1. - _Gopinath A. R._, Feb 14 2012

%F a(n) = (4n+1)^2+(4n-1)^2 for n>0. [_Bruno Berselli_, Jun 24 2014]

%F a(n) = A244082(n) + 2, n >= 1. - _Omar E. Pol_, Apr 21 2021

%F Sum_{n>=0} 1/a(n) = 3/4 + Pi/16*coth(Pi/4) = 1.04940725316131.. - _R. J. Mathar_, May 07 2024

%F a(n) = 2*A108211(n). - _R. J. Mathar_, May 07 2024

%F a(n) = A195315(n)+A195315(n+1). - _R. J. Mathar_, May 07 2024

%t Join[{1}, 32 Range[40]^2 + 2] (* _Bruno Berselli_, Feb 07 2012 *)

%t CoefficientList[Series[(1 + x) (1 + 30 x + x^2)/(1 - x)^3, {x, 0, 40}], x] (* _Vincenzo Librandi_, Jun 25 2014 *)

%Y Cf. A206399, A158563, A158575, A244082.

%Y Cf. A274979 (generalized 18-gonal numbers).

%K nonn,easy

%O 0,2

%A _N. J. A. Sloane_.