OFFSET
0,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..10000
Nicholas Drozd, A Busy Beaver Champion Derived from Scratch
Nicholas Drozd, Feedback to Doron Zeilberger's opinion #155, Jan. 4, 2022.
Index entries for linear recurrences with constant coefficients, signature (0,0,2,0,0,-1).
FORMULA
From Chai Wah Wu, Jul 27 2022: (Start)
a(n) = 2*a(n-3) - a(n-6) for n > 5.
G.f.: x*(x^3 + 3*x^2 + 5*x + 4)/(x^6 - 2*x^3 + 1). (End)
MATHEMATICA
Array[If[#2 == 0, #1, 5 #1 + 3 + #2 & @@ QuotientRemainder[#1, 3]] & @@ {#, Mod[#, 3]} &, 78, 0] (* Michael De Vlieger, Apr 14 2022 *)
PROG
(PARI) A353314(n) = { my(r=(n%3)); if(!r, n, ((5*((n-r)/3)) + r + 3)); };
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, Apr 14 2022
STATUS
approved