A028872 a(n) = n^2 - 3.
1, 6, 13, 22, 33, 46, 61, 78, 97, 118, 141, 166, 193, 222, 253, 286, 321, 358, 397, 438, 481, 526, 573, 622, 673, 726, 781, 838, 897, 958, 1021, 1086, 1153, 1222, 1293, 1366, 1441, 1518, 1597, 1678, 1761, 1846, 1933, 2022, 2113, 2206, 2301
Offset: 2
Links
- G. C. Greubel, Table of n, a(n) for n = 2..5000
- Patrick De Geest, Palindromic Quasipronics of the form n(n+x).
- Q. H. He, J. Z. Gu, S. J. Xu, and W. H. Chan, Hosoya polynomials of hexagonal triangles and trapeziums, MATCH, Commun. Math. Comput. Chem. 72, 2014, 835-843. - _Emeric Deutsch_, Nov 14 2014
- Ran Pan, Exercise V, Project P.
- Eric Weisstein's World of Mathematics, Near-Square Prime.
- Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
Programs
-
Maple
A028872 := proc(n) n^2-3; end proc: # R. J. Mathar, Aug 23 2011
-
Mathematica
Range[2, 60]^2 - 3 (* or *) LinearRecurrence[{3, -3, 1}, {1, 6, 13}, 60] (* Harvey P. Dale, May 09 2013 *)
-
PARI
a(n)=n^2-3 \\ Charles R Greathouse IV, Aug 23 2011
-
PARI
x='x+O('x^99); Vec(x^2*(-1-3*x+2*x^2)/(-1+x)^3) \\ Altug Alkan, Apr 10 2016
-
Sage
[lucas_number1(3,n,3) for n in range(2,50)] # Zerinvary Lajos, Jul 03 2008
Formula
From R. J. Mathar, Apr 28 2008: (Start)
O.g.f.: x^2*(1 + 3*x - 2*x^2)/(1 - x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). (End)
a(n+1) = floor((n^4 + 2*n^3)/(n^2 + 1)). - Gary Detlefs, Feb 20 2010, corrected by Charles R Greathouse IV, Mar 18 2022
a(n) = a(n-1) + 2*n-1 (with a(2)=1). - Vincenzo Librandi, Nov 18 2010
a(n)*a(n-1) + 3 = (a(n) - n)^2 = A014209(n-2)^2. - Bruno Berselli, Dec 07 2011
a(n) = A000290(n) - 3. - Michel Marcus, Nov 13 2013
Sum_{n>=2} 1/a(n) = 2/3 - Pi*cot(sqrt(3)*Pi)/(2*sqrt(3)) = 1.476650189986093617... . - Vaclav Kotesovec, Apr 10 2016
E.g.f.: (x^2 + x - 3)*exp(x) + 2*x + 3. - G. C. Greubel, Jul 19 2017
Sum_{n>=2} (-1)^n/a(n) = -(2 + sqrt(3)*Pi*cosec(sqrt(3)*Pi))/6 = 0.8826191087... - Amiram Eldar, Nov 04 2020
From Amiram Eldar, Jan 29 2021: (Start)
Product_{n>=2} (1 + 1/a(n)) = sqrt(6)*csc(sqrt(3)*Pi)*sin(sqrt(2)*Pi).
Product_{n>=3} (1 - 1/a(n)) = -Pi*csc(sqrt(3)*Pi)/(4*sqrt(3)). (End)
Comments