OFFSET
0,1
COMMENTS
Partial sums of the sequence 56,1,1,1,1,1,1,1,57,1,1,1,1,1,1,1,57, ... which has period 8.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,1,-1).
FORMULA
a(n)=8n+56-7*(n mod 8). [Corrected by Charles R Greathouse IV, Oct 13 2022]
G.f.: g(x)=(56+x+x^2+x^3+x^4+x^5+x^6+x^7+x^8)/((1-x^8)(1-x)).
G.f.: g(x)=(56-55x-x^9) /((1-x^8)(1-x)^2).
PROG
(PARI) a(n)=8*n+56-n%8*7 \\ Charles R Greathouse IV, Oct 13 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Hieronymus Fischer, Oct 20 2007
STATUS
approved