A369113 Tropical version of Somos-6 sequence A006722.
-1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 8, 9, 9, 11, 12, 13, 14, 15, 17, 18, 19, 21, 22, 24, 25, 27, 29, 30, 32, 34, 36, 38, 39, 42, 44, 46, 48, 50, 53, 55, 57, 60, 62, 65, 67, 70, 73, 75, 78, 81, 84, 87, 89, 93, 96, 99, 102, 105, 109, 112, 115, 119, 122, 126, 129, 133, 137, 140, 144, 148, 152
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1,0,0,1,0,-1,0,0,-1,1)
Crossrefs
Cf. A006722.
Programs
-
Maxima
N : 6$ Len : 50$ /* tropical version of Somos-N, 2 <= N <= 7, Len = length of the calculated list */ NofRT : floor (N / 2)$ /* number of terms in a Somos-N recurrence */ A : makelist (0, Len)$ A[1] : -1$ for i: 2 thru N do ( A[i] : 0 )$ for i: N + 1 thru Len do ( M : minf, for j : 1 thru NofRT do ( M : max ( M, A[i - j] + A[i - N + j] ) ), A[i] : M - A[i - N] )$ A;
Formula
a(n) = max( a(n-1) + a(n-5), a(n-2) + a(n-4), 2*a(n-3) ) - a(n-6) for all n in Z.
G.f.: (-1 + x + x^4)/((1 - x)^3*(1 + x)*(1 + x^2)*(1 + x + x^2 + x^3 + x^4)). - Stefano Spezia, Jan 14 2024
Comments