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!)
A122591 a(n) = 2*a(n-1) - a(n-2) + (a(n-1)^2 + a(n-2)^2). 4
1, 1, 3, 15, 261, 68853, 4740941175, 22476523239032929731, 505194096914787342916581691483319031273, 255221075557547546310804864838512137564534415781651685947633570258183940865705 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = 2*a(n-1) - a(n-2) + (a(n-1)^2 + a(n-2)^2), with a(1) = a(2) = 1.
MATHEMATICA
a[n_]:= a[n]= If[n<3, 1, 2*a[n-1] -a[n-2] +(a[n-1]^2 + a[n-2]^2)];
Table[a[n], {n, 0, 10}]
PROG
(Magma)
function a(n) // a = A122591
if n lt 3 then return 1;
else return 2*a(n-1) -a(n-2) +(a(n-1)^2 +a(n-2)^2);
end if; return a; end function;
[a(n): n in [1..12]]; // G. C. Greubel, Nov 29 2021
(Sage)
#a = A122591
def a(n): return 1 if (n<3) else 2*a(n-1) -a(n-2) +(a(n-1)^2 +a(n-2)^2)
[a(n) for n in (1..12)] # G. C. Greubel, Nov 29 2021
CROSSREFS
Sequence in context: A051179 A374341 A374342 * A326263 A120607 A013352
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Sep 19 2006
EXTENSIONS
Edited by N. J. A. Sloane, Sep 21 2006
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 July 16 19:40 EDT 2024. Contains 374358 sequences. (Running on oeis4.)