login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A113854
a(n) = sum(2^(A047240(i)-1), i=1..n).
2
1, 3, 35, 99, 227, 2275, 6371, 14563, 145635, 407779, 932067, 9320675, 26097891, 59652323, 596523235, 1670265059, 3817748707, 38177487075, 106896963811, 244335917283, 2443359172835, 6841405683939, 15637498706147
OFFSET
1,2
LINKS
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
EXAMPLE
a(2) = 2^(A047240(1)-1) + 2^(A047240(2)-1) = 2^0 + 2^1 = 3
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
Cf. A047240.
Sequence in context: A246824 A334068 A001539 * A231645 A076376 A338787
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Jan 27 2006
EXTENSIONS
Edited by Stefan Steinerberger, Jul 24 2007
STATUS
approved