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

A116975
Number of compositions of n into parts of sizes == 1 mod 5 or 4 mod 5.
1
1, 1, 1, 2, 3, 5, 7, 10, 15, 23, 35, 52, 77, 115, 173, 260, 389, 581, 869, 1302, 1951, 2921, 4371, 6542, 9795, 14667, 21959, 32872, 49209, 73671, 110297, 165128, 247209, 370089, 554057, 829482, 1241819, 1859117, 2783263, 4166802
OFFSET
1,4
FORMULA
G.f.: x*(1+x^3)/(1-x-x^4-x^5). - Vladeta Jovovic, Apr 02 2006
EXAMPLE
a(8)=10 : 611, 161, 116, 44, 41111, 14111, 11411, 11141, 11114, 11111111
MATHEMATICA
LinearRecurrence[{1, 0, 0, 1, 1}, {1, 1, 1, 2, 3}, 40] (* Harvey P. Dale, Dec 06 2021 *)
CROSSREFS
Sequence in context: A362757 A018133 A261081 * A286227 A134792 A300795
KEYWORD
nonn
AUTHOR
Jon Perry, Apr 01 2006
EXTENSIONS
More terms from Vladeta Jovovic, Apr 02 2006
STATUS
approved