login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A008824 Expansion of (1+2*x^4+x^7)/((1-x)^2*(1-x^7)). 4
1, 2, 3, 4, 7, 10, 13, 18, 23, 28, 33, 40, 47, 54, 63, 72, 81, 90, 101, 112, 123, 136, 149, 162, 175, 190, 205, 220, 237, 254, 271, 288, 307, 326, 345, 366, 387, 408, 429, 452, 475, 498, 523, 548, 573, 598, 625, 652 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(0)=1, a(1)=2, a(2)=3, a(3)=4, a(4)=7, a(5)=10, a(6)=13, a(7)=18, a(8)=23, a(n) = 2*a(n-1) - a(n-2) + a(n-7) - 2*a(n-8) + a(n-9). - Harvey P. Dale, Apr 26 2014
a(n) = floor( (2*n^2 + 3*n + 7 + 2*(floor((n-1)/7) - floor((n-2)/7)) )/7) = floor((2*n^2 +3*n +7 +2*A082784(n-1))/7). - G. C. Greubel, Sep 13 2019
MAPLE
seq(coeff(series((1+2*x^4+x^7)/((1-x)^2*(1-x^7)), x, n+1), x, n), n = 0..50); # G. C. Greubel, Sep 13 2019
MATHEMATICA
CoefficientList[Series[(1+2x^4+x^7)/(1-x)^2/(1-x^7), {x, 0, 50}], x] (* or *) LinearRecurrence[{2, -1, 0, 0, 0, 0, 1, -2, 1}, {1, 2, 3, 4, 7, 10, 13, 18, 23}, 50] (* Harvey P. Dale, Apr 26 2014 *)
PROG
(PARI) a(n)=floor((2*n^2+3*n+7+2*(n%7==1))/7) \\ Tani Akinari, Jun 01 2014
(Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!( (1+2*x^4+x^7)/((1-x)^2*(1-x^7)) )); // G. C. Greubel, Sep 13 2019
(Sage)
def A008824_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P((1+2*x^4+x^7)/((1-x)^2*(1-x^7))).list()
A008824_list(50) # G. C. Greubel, Sep 13 2019
(GAP) a:=[1, 2, 3, 4, 7, 10, 13, 18, 23];; for n in [10..50] do a[n]:=2*a[n-1]-a[n-2]+a[n-7]-2*a[n-8]+a[n-9]; od; a; # G. C. Greubel, Sep 13 2019
CROSSREFS
Expansions of the form (1 +2*x^(m+1) +x^(2*m+1))/((1-x)^2*(1-x^(2*m+1))): A008822 (m=1), A008823 (m=2), this sequence (m=3), A008825 (m=4).
Sequence in context: A279225 A073149 A065461 * A261616 A333615 A329774
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 15 1996
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 21:51 EDT 2024. Contains 371781 sequences. (Running on oeis4.)