OFFSET
1,2
COMMENTS
A piano sequence since if a(n) < 88 then A059620(a(n)) = 1.
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
a(n) = a(n-5) + 12.
a(n) = A081032(n) - 1 for 1 <= n <= 36. - Jianing Song, Oct 14 2019
From Colin Barker, Oct 14 2019: (Start)
G.f.: x*(1 + 3*x + 2*x^2 + 3*x^3 + 2*x^4 + x^5) / ((1 - x)^2*(1 + x + x^2 + x^3 + x^4)).
a(n) = a(n-1) + a(n-5) - a(n-6) for n > 6.
(End)
PROG
(PARI) Vec(x*(1 + 3*x + 2*x^2 + 3*x^3 + 2*x^4 + x^5) / ((1 - x)^2*(1 + x + x^2 + x^3 + x^4)) + O(x^60)) \\ Colin Barker, Oct 14 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Henry Bottomley, Feb 27 2001
STATUS
approved