login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Vincenzo Librandi, X^2-AY^2=1
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
Sequence in context: A251165 A065794 A206253 * A252921 A216204 A153980
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Mar 04 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)