A157762 a(n) = 15780962*n^2 - 5618000*n + 500001.
10662963, 52387849, 125674659, 230523393, 366934051, 534906633, 734441139, 965537569, 1228195923, 1522416201, 1848198403, 2205542529, 2594448579, 3014916553, 3466946451, 3950538273, 4465692019, 5012407689, 5590685283
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:=[10662963, 52387849, 125674659]; [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}, {10662963, 52387849, 125674659}, 30]
-
PARI
a(n) = 15780962*n^2 - 5618000*n + 500001;
Formula
G.f: x*(10662963 + 20398960*x + 500001*x^2)/(1 - x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
Comments