OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10001
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,1,-1).
FORMULA
From M. F. Hasler, Nov 09 2024: (Start)
a(n) = a(n-8) + 210 = 210*floor((n-1)/8) + a((n-1)%8 + 1), where % is the modulo or remainder operation.
a(n) = a(n-1) + a(n-8) - a(n-9) for n > 9, with a(1..9) given in DATA.
G.f.: x*(7 + 24*x + 28*x^2 + 26*x^3 + 28*x^4 + 24*x^5 + 26*x^6 + 28*x^7 + 19*x^8)/D with D = 1 - x - x^8 + x^9 = (1 + x^4)(1 - x^4) = (1 + x^4)(1 + x^2)(1 + x)(1 - x). (End)
PROG
(PARI) appy( {A255414(n)=(n--)\8*210+[7, 31, 59, 85, 113, 137, 163, 191][n%8+1]}, [1..30]) \\ M. F. Hasler, Nov 09 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, Feb 22 2015
STATUS
approved