For each positive integer n, consider the ternary sequence given initially by x(i) = 0 if 1 <= i < n, x(n) = 1; and thereafter determined by the quadratic recurrence x(i) = x(i-1) + x(i-n)^2 mod 3. Define a(n) to be the smallest positive integer N for which x(N+i) = x(i) for all sufficiently large i.
A112683
For each positive integer n, consider the ternary sequence given initially by x(i) = 0 if 1 <= i < n, x(n) = 1; and thereafter determined by the quadratic recurrence x(i) = x(i-1) + x(i-n)^2 mod 3. Define a(n) to be the smallest positive integer N for which x(N+i) = x(i) for all sufficiently large i.
Terms
- a(0) =1a(1) =4a(2) =4a(3) =9a(4) =19a(5) =4a(6) =4a(7) =22a(8) =36a(9) =4a(10) =4a(11) =45a(12) =64a(13) =4a(14) =4a(15) =102a(16) =182a(17) =213a(18) =4a(19) =188a(20) =272a(21) =4a(22) =412a(23) =225a(24) =202a(25) =4a(26) =4a(27) =1444a(28) =512a(29) =4
External references
- oeis: A112683