A156721 a(n) = 57122*n^2 - 47320*n + 9801.
19603, 143649, 381939, 734473, 1201251, 1782273, 2477539, 3287049, 4210803, 5248801, 6401043, 7667529, 9048259, 10543233, 12152451, 13875913, 15713619, 17665569, 19731763, 21912201, 24206883, 26615809, 29138979
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..10000
- Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
Programs
-
Magma
I:=[19603, 143649, 381939]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+Self(n-3): n in [1..40]];
-
Mathematica
LinearRecurrence[{3, -3, 1}, {19603, 143649, 381939}, 40]
-
PARI
a(n)=57122*n^2-47320*n+9801 \\ Charles R Greathouse IV, Dec 23 2011
Formula
G.f.: x*(19603 + 84840*x + 9801*x^2)/(1 - x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
Extensions
Edited by Charles R Greathouse IV, Jul 25 2010
Comments