OFFSET
1,5
COMMENTS
The Somos-4 polynomial sequence is s(n).
LINKS
Michael Somos, Somos polynomials
FORMULA
a(n) = a(5-n) for all n in Z.
EXAMPLE
a(6) = 3 because s(6) = x*y^3*z^2 + x*y^3*z + x*y^2*z^2 has 3 terms.
MATHEMATICA
a[ n_] := If[1 <= n <= 4, 1, RecurrenceTable[{s[m]*s[m - 4] == x*y*z*(s[m - 1]*s[m - 3] + s[m - 2]^2), s[1] == x, s[2] == 1, s[3] == 1, s[4] == y}, s, {m, Max[n, 5 - n]}] // Last // Factor // Expand // Length];
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Michael Somos, Jan 29 2021
EXTENSIONS
a(31)-a(34) from Jinyuan Wang, Feb 14 2021
STATUS
approved