OFFSET
1,9
COMMENTS
See A187180 for details.
LINKS
Ray Chandler, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1).
FORMULA
After the initial block of eight 1's, the sequence is quasi-periodic with period 64, increasing by 8 after each block.
a(n) ~ n/8. - Charles R Greathouse IV, May 30 2026
PROG
(PARI) a(n)=if(n>7, (n+[8, -1, 6, -3, 4, -5, 2, -7, 0, 7, 6, 5, 4, 11, 2, 1, 0, -1, 6, 5, 4, 3, 2, 1, 0, 7, 6, 13, 4, 3, 10, 1, 0, 7, -2, -3, 4, 3, 2, 1, 0, 7, 6, 5, 4, 11, 2, 1, 0, -1, 6, 5, 4, 3, 2, 1, 0, 7, 14, 5, 12, 3, 10, 1][n%64+1])/8, 1) \\ Charles R Greathouse IV, May 30 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Mar 06 2011
STATUS
approved
