A130884 3n^3 + 2n^2 + n + 1.
1, 7, 35, 103, 229, 431, 727, 1135, 1673, 2359, 3211, 4247, 5485, 6943, 8639, 10591, 12817, 15335, 18163, 21319, 24821, 28687, 32935, 37583, 42649, 48151, 54107, 60535, 67453, 74879, 82831, 91327, 100385, 110023, 120259, 131111
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
Programs
-
Magma
[3*n^3+2*n^2+n+1: n in [0..35]]; // Vincenzo Librandi, Feb 12 2013
-
Mathematica
Table[3n^3+2n^2+n+1,{n,0,40}] (* or *) LinearRecurrence[{4,-6,4,-1},{1,7,35,103},40] (* Harvey P. Dale, Jan 17 2012 *)
Formula
G.f.: (1+13*x^2+x^3+3*x)/(-1+x)^4. - R. J. Mathar, Nov 14 2007
a(0)=1, a(1)=7, a(2)=35, a(3)=103, a(n)=4*a(n-1)-6*a(n-2)+4*a(n-3)- a(n-4) [Harvey P. Dale, Jan 17 2012]