OFFSET
1,2
LINKS
FORMULA
For n>4, a(n) = a(n-3)*4!. - Rob Hoogers (chimera(AT)chimera.fol.nl), Jun 27 2004
a(n) = 2^i*3^j, with i=A064429(n-1), j=[n/3]+[n%3==0].
G.f.: x*(1-x)*(1+3*x+12*x^2)/(1-24*x^3). - Colin Barker, Jun 07 2012
MATHEMATICA
LinearRecurrence[{0, 0, 24}, {1, 2, 9, 12}, 30] (* Paolo Xausa, Apr 22 2024 *)
PROG
(PARI) mod 3(n)=if (i%3==0, 3, i%3) s=1; for (i=2, 30, print1(s*mod 3(i), ", "); s=s+s*mod 3(i))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jon Perry, Oct 15 2002
EXTENSIONS
More terms from Rob Hoogers (chimera(AT)chimera.fol.nl), Jun 27 2004
An incorrect comment was deleted, Aug 02 2010
STATUS
approved