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!)
A245367 Compositions of n into parts 3, 5 and 7. 2
1, 0, 0, 1, 0, 1, 1, 1, 2, 1, 3, 3, 3, 6, 5, 8, 10, 11, 17, 18, 25, 32, 37, 52, 61, 79, 102, 123, 163, 200, 254, 326, 402, 519, 649, 819, 1045, 1305, 1664, 2096, 2643, 3358, 4220, 5352, 6759, 8527, 10806, 13622, 17237, 21785, 27501, 34802, 43934, 55544, 70209, 88672, 112131, 141644, 179018, 226274, 285860, 361358 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,9
LINKS
FORMULA
G.f: 1/(1-x^3-x^5-x^7).
a(n) = a(n-3) + a(n-5) + a(n-7).
EXAMPLE
a(16) = 10: the compositions are the permutations of [5533] (there are 4!/2!2!=6 of them) and the permutations of [7333] (there are 4!/3!=4).
MATHEMATICA
LinearRecurrence[{0, 0, 1, 0, 1, 0, 1}, {1, 0, 0, 1, 0, 1, 1}, 70] (* Harvey P. Dale, Jan 27 2017 *)
PROG
(PARI) Vec(1/(1-x^3-x^5-x^7) +O(x^66)) \\ Joerg Arndt, Aug 20 2014
CROSSREFS
Sequence in context: A341147 A325335 A262952 * A304740 A326619 A326567
KEYWORD
nonn,easy
AUTHOR
David Neil McGrath, Aug 20 2014
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.)