OFFSET
0,6
COMMENTS
An example of how a Somos recurrence can be generalized such that proving its integrality looks more difficult in the first glance. In this example the Somos-4 recurrence b(n) = (b(n-1) * b(n-3) + b(n-2)^2) / b(n-4) was modified by substitution of b(n-k) with (a(n-k) + a(n-k-1)).
This sequence is not a divisibility sequence unlike Somos-4 sequences are.
FORMULA
(a(n) + a(n+1))/2 = A006720(n).
PROG
(PARI) a=vector(26); a[1]=a[2]=a[3]=a[4]=a[5]=1; for(n=6, #a, a[n]=(a[n-2]^2+a[n-3]^2+a[n-2]*(3*a[n-3]+a[n-4])+a[n-1]*(a[n-3]-a[n-5]))/(a[n-4]+a[n-5])); a
CROSSREFS
KEYWORD
nonn
AUTHOR
Thomas Scheuerle, Sep 06 2024
STATUS
approved
