|
|
A157670
|
|
a(n) = 531441*n^2 - 322218*n + 48842.
|
|
3
|
|
|
258065, 1530170, 3865157, 7263026, 11723777, 17247410, 23833925, 31483322, 40195601, 49970762, 60808805, 72709730, 85673537, 99700226, 114789797, 130942250, 148157585, 166435802, 185776901, 206180882, 227647745, 250177490
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The identity (531441*n^2 - 322218*n + 48842)^2 - (729*n^2 - 442*n + 67)*(19683*n - 5967)^2 = 1 can be written as a(n)^2 - A157668(n)*A157669(n)^2 = 1.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: x*(258065 + 755975*x + 48842*x^2)/(1-x)^3.
E.g.f.: (48842 + 209223*x + 531441*x^2)*exp(x) - 48842. - G. C. Greubel, Nov 17 2018
|
|
MATHEMATICA
|
LinearRecurrence[{3, -3, 1}, {258065, 1530170, 3865157}, 40]
|
|
PROG
|
(Magma) I:=[258065, 1530170, 3865157]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+1*Self(n-3): n in [1..40]];
(PARI) a(n) = 531441*n^2 - 322218*n + 48842.
(Sage) [531441*n^2 - 322218*n + 48842 for n in (1..40)] # G. C. Greubel, Nov 17 2018
(GAP) List([1..40], n -> 531441*n^2 - 322218*n + 48842); # G. C. Greubel, Nov 17 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|