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!)
A117760 Expansion of 1/(1 - x - x^3 - x^5 - x^7). 2
1, 1, 1, 2, 3, 5, 8, 13, 21, 33, 53, 85, 136, 218, 349, 559, 895, 1433, 2295, 3675, 5885, 9424, 15091, 24166, 38698, 61969, 99234, 158908, 254467, 407490, 652533, 1044932, 1673299, 2679533, 4290863, 6871162, 11003117, 17619812, 28215439, 45182718 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
Number of compositions of n into parts 1, 3, 5, and 7. - David Neil McGrath, Aug 18 2014
LINKS
Milan Janjic, Binomial Coefficients and Enumeration of Restricted Words, Journal of Integer Sequences, 2016, Vol 19, #16.7.3.
Sergey Kirgizov, Q-bonacci words and numbers, arXiv:2201.00782 [math.CO], 2022.
FORMULA
a(n) = a(n-1) + a(n-3) + a(n-5) + a(n-7).
MAPLE
a:= proc() option remember;
if n=0 then 1;
elif n<=7 then combinat[fibonacci](n);
else a(n-1) + a(n-3) + a(n-5) + a(n-7);
end if; end proc;
seq(a(n), n=0..50); # modified by G. C. Greubel, Jul 21 2023
MATHEMATICA
CoefficientList[Series[1/(1-x-x^3-x^5-x^7), {x, 0, 50}], x]
PROG
(PARI) Vec( 1/(1-x-x^3-x^5-x^7)+O(x^66) ) \\ Joerg Arndt, Aug 19 2014
(Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!( 1/(1-x-x^3-x^5-x^7) )); // G. C. Greubel, Jul 21 2023
(SageMath)
@CachedFunction
def a(n): # a = A117760
if n<8: return fibonacci(n) + int(n==0)
else: return a(n-1) + a(n-3) + a(n-5) + a(n-7)
[a(n) for n in range(51)] # G. C. Greubel, Jul 21 2023
CROSSREFS
Sequence in context: A055806 A358902 A023438 * A181600 A111917 A309676
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Apr 14 2006
EXTENSIONS
Edited and extended by N. J. A. Sloane, Apr 20 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 June 24 09:30 EDT 2024. Contains 373674 sequences. (Running on oeis4.)