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!)
A165903 a(n) = (a(n-1)^2 + a(n-2)^2 + a(n-1)*a(n-2))/a(n-3) with three initial ones. 6
1, 1, 1, 3, 13, 217, 16693, 21717363, 2175145909081, 283430597537694797281, 3699017428454717709381715649628841, 6290488320295607125006566146327310005599469877825552723 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
a(n) ~ 1/6 * c^(((1+sqrt(5))/2)^n), where c = 1.902254978346365075882696720546123493664... . - Vaclav Kotesovec, May 06 2015
a(n) = 6*a(n-1)*a(n-2)-a(n-1)-a(n-2)-a(n-3). - Bruno Langlois, Aug 21 2016
MAPLE
a:= proc(n, k) option remember;
if n<3 then 1
else (a(n-1)^2 + a(n-2)^2 + a(n-1)*a(n-2))/a(n-3)
fi; end:
seq( a(n), n=0..12); # G. C. Greubel, Dec 19 2019
MATHEMATICA
RecurrenceTable[{a[0]==1, a[1]==1, a[2]==1, a[n]==(a[n-1]^2+a[n-2]^2+a[n-1]*a[n-2])/a[n-3]}, a, {n, 0, 10}] (* Vaclav Kotesovec, May 06 2015 *)
nxt[{a_, b_, c_}]:={b, c, (c^2+b^2+b*c)/a}; NestList[nxt, {1, 1, 1}, 10][[All, 1]] (* Harvey P. Dale, Oct 24 2022 *)
PROG
(PARI) a(n)=if(n<3, 1, (a(n-1)^2 +a(n-2)^2 +a(n-1)*a(n-2))/a(n-3))
(Magma) I:=[1, 1, 1]; [n le 3 select I[n] else (Self(n-1)^2 + Self(n-2)^2 + Self(n-1)*Self(n-2))/Self(n-3): n in [1..12]]; // G. C. Greubel, Dec 19 2019
(Sage)
@CachedFunction
def a(n):
if (n<3): return 1
else: return (a(n-1)^2+a(n-2)^2+a(n-1)*a(n-2))/a(n-3)
[a(n) for n in (0..12)] # G. C. Greubel, Dec 19 2019
(GAP) a:=[1, 1, 1];; for n in [4..12] do a[n]:= (a[n-1]^2 + a[n-2]^2 + a[n-1]*a[n-2])/a[n-3]; od; a; # G. C. Greubel, Dec 19 2019
CROSSREFS
Sequence in context: A112093 A085010 A259988 * A100441 A036680 A111431
KEYWORD
nonn
AUTHOR
Jaume Oliver Lafont, Sep 29 2009
EXTENSIONS
"frac" keyword removed by Jaume Oliver Lafont, Oct 13 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 23 02:14 EDT 2024. Contains 371906 sequences. (Running on oeis4.)