login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A111289
a(1) = a(2) = a(3) = a(4) = 1. For n>= 5, a(n) = a(n-1)*a(n-4) + a(n-2)*a(n-3).
0
1, 1, 1, 1, 2, 3, 5, 11, 37, 166, 1237, 19749, 936055, 179814643, 240916863586, 4926183534613279, 4654499108310829164143, 838133896191338105830469104443, 201943518452400520392903690464302135967495, 994814736615560793049792416556718062880283217474796953454
OFFSET
1,5
MATHEMATICA
nxt[{a_, b_, c_, d_}]:={b, c, d, a*d+b*c}; NestList[nxt, {1, 1, 1, 1}, 20][[;; , 1]] (* Harvey P. Dale, Feb 23 2023 *)
PROG
(PARI) a(n)=if(n<5, 1, a(n-1)*a(n-4) + a(n-2)*a(n-3)) (Klasen)
CROSSREFS
Sequence in context: A167604 A065510 A006721 * A255420 A127181 A323611
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Nov 01 2005
EXTENSIONS
More terms from Lambert Klasen (lambert.klasen(AT)gmx.net), Nov 06 2005
STATUS
approved