OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,2,0,0,-1).
FORMULA
a(n) = A353314(n) - n.
a(n) = A102899(3+n).
From Chai Wah Wu, Jul 27 2022: (Start)
a(n) = 2*a(n-3) - a(n-6) for n > 5.
G.f.: x*(-x^4 - x^3 + 3*x + 3)/(x^6 - 2*x^3 + 1). (End)
PROG
(PARI) A353327(n) = { my(r=(n%3)); if(!r, 0, ((2*((n-r)/3)) + 3)); };
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Antti Karttunen, Apr 14 2022
STATUS
approved