OFFSET
0,13
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..368
Eric Weisstein's World of Mathematics, Somos Sequence
MATHEMATICA
a[k_, n_]:=a[k, n]= If[n>2k+1, (a[k, (n-1)]*a[k, (n-2k-1)]+(a[k, (n-k-1)])^2 )/a[k, (n-2k-2)], 1]; Map[a[5, #]&, Range[0, 43]] (* Peter J. C. Moses, Apr 15 2016 *)
RecurrenceTable[{Table[a[i]==1, {i, 0, 11}], a[n]==(a[n-1]a[n-11]+a[n-6]^2)/ a[n-12]}, a, {n, 50}](* Harvey P. Dale, Sep 24 2021 *)
PROG
(PARI) {a(n) = if(n< 12, 1, (a(n-1)*a(n-11) + a(n-6)^2)/a(n-12))};
for(n=0, 50, print1(a(n), ", ")) \\ G. C. Greubel, Feb 21 2018
(Magma) [n le 12 select 1 else (Self(n-1)*Self(n-11) + Self(n-6)^2 )/Self(n-12): n in [1..50]]; // G. C. Greubel, Feb 21 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev and Peter J. C. Moses, Apr 15 2016
EXTENSIONS
More terms from Alois P. Heinz, Apr 15 2016
STATUS
approved