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!)
A117450 Expansion of (1-x+x^2+x^5)/((1-x)^2*(1-x^5)). 3
1, 1, 2, 3, 4, 7, 9, 12, 15, 18, 23, 27, 32, 37, 42, 49, 55, 62, 69, 76, 85, 93, 102, 111, 120, 131, 141, 152, 163, 174, 187, 199, 212, 225, 238, 253, 267, 282, 297, 312, 329, 345, 362, 379, 396, 415, 433, 452, 471, 490, 511 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = 2*a(n-1) - a(n-2) + a(n-5) - 2*a(n-6) + a(n-7).
a(n) = Sum_{k=0..n} binomial(n-k, L(k/5))}, where L(j/p) is the Legendre symbol of j and p.
a(n) = ((5 - sqrt(5))/50)*cos(2*Pi*(2*n+1)/5) + sqrt(((5 +sqrt(5))/50)*sin(2*Pi*(2*n+1)/5) - ((5 + sqrt(5))/50)*cos(Pi*(2*n+1)/5) + sqrt(((5 -sqrt(5))/50)*sin(Pi*(2*n+1)/5) + (n^2 + n + 3)/5.
MATHEMATICA
CoefficientList[Series[(1-x+x^2+x^5)/((1-x)^2(1-x^5)), {x, 0, 80}], x] (* Harvey P. Dale, Nov 22 2018 *)
PROG
(Magma) R<x>:=PowerSeriesRing(Integers(), 60); Coefficients(R!( (1-x+x^2+x^5)/((1-x)^2*(1-x^5)) )); // G. C. Greubel, Jun 03 2021
(Sage)
def A117450_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1-x+x^2+x^5)/((1-x)^2*(1-x^5)) ).list()
A117450_list(60) # G. C. Greubel, Jun 03 2021
CROSSREFS
Cf. A117451 (first differences), A117452 (second differences).
Sequence in context: A191989 A084913 A270839 * A132381 A073152 A325092
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Mar 16 2006
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 25 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)