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”).

A008750
Expansion of (1+x^7)/((1-x)*(1-x^2)*(1-x^3)).
1
1, 1, 2, 3, 4, 5, 7, 9, 11, 14, 17, 20, 24, 28, 32, 37, 42, 47, 53, 59, 65, 72, 79, 86, 94, 102, 110, 119, 128, 137, 147, 157, 167, 178, 189, 200, 212, 224, 236, 249, 262, 275, 289, 303, 317, 332, 347, 362
OFFSET
0,3
FORMULA
a(n) = A001399(n) + A001399(n-7). - R. J. Mathar, Jul 09 2015
MATHEMATICA
CoefficientList[Series[(1+x^7)/(1-x)/(1-x^2)/(1-x^3), {x, 0, 50}], x] (* Michael De Vlieger, Jul 09 2015 *)
PROG
(PARI) my(x='x+O('x^50)); Vec((1+x^7)/((1-x)*(1-x^2)*(1-x^3))) \\ G. C. Greubel, Aug 04 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!( (1+x^7)/((1-x)*(1-x^2)*(1-x^3)) )); // G. C. Greubel, Aug 04 2019
(Sage) ((1+x^7)/((1-x)*(1-x^2)*(1-x^3))).series(x, 50).coefficients(x, sparse=False) # G. C. Greubel, Aug 04 2019
(GAP) a:=[1, 1, 2, 3, 4];; for n in [6..50] do a[n]:=2*a[n-1]-a[n-2]+a[n-3] -2*a[n-4]+a[n-5]; od; a; # G. C. Greubel, Aug 04 2019
CROSSREFS
Cf. A001399.
Sequence in context: A286267 A337334 A375606 * A076677 A029001 A161306
KEYWORD
nonn,easy
STATUS
approved