OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..300
FORMULA
G.f.: x*(1+2*x+32*x^2)/((-1+x)*(-1+4*x)*(1+4*x+16*x^2)). - Vaclav Kotesovec, Nov 28 2012
MATHEMATICA
a = {}; s = 0; For[n = 1, n < 48, n++, If[Length[Intersection[{Mod[n, 6]}, {1, 2, 0}]] > 0, s = s + 2^(n - 1); AppendTo[a, s]]]; a
CoefficientList[Series[(1 + 2 x + 32 x^2)/((-1 + x) (-1 + 4 x) (1 + 4 x + 16 x^2)), {x, 0, 25}], x] (* Vincenzo Librandi, May 20 2013 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Jan 27 2006
EXTENSIONS
Edited by Stefan Steinerberger, Jul 24 2007
STATUS
approved