OFFSET
1,1
LINKS
FORMULA
G.f.: 2*x*(1-x)*(1+4*x+8*x^2)/(1-24*x^3). [Colin Barker, Jun 07 2012]
MATHEMATICA
LinearRecurrence[{0, 0, 24}, {2, 6, 8, 32}, 30] (* Harvey P. Dale, Sep 10 2021 *)
PROG
(PARI) mod 3(n)=if (i%3==0, 3, i%3) s=2; for (i=3, 30, print1(s*mod 3(i), ", "); s=s+s*mod 3(i))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jon Perry, Oct 15 2002
EXTENSIONS
a(16) corrected by Colin Barker, Jun 07 2012
Better definition and corrected value for a(24) from Sean A. Irvine, May 19 2019
STATUS
approved