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!)
A336269 Number of compositions of n containing no part p of multiplicity p. 4
1, 0, 2, 2, 5, 11, 18, 36, 84, 155, 305, 625, 1269, 2487, 5070, 10263, 20964, 41905, 84799, 170540, 346192, 696157, 1405156, 2822998, 5686402, 11420892, 22949684, 46028648, 92347798, 185051670, 370756866, 742307736, 1485798060, 2972924906, 5947567564 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = A011782(n) - A336273(n).
MAPLE
b:= proc(n, i, p) option remember; `if`(n=0, p!, `if`(i<1, 0,
add(`if`(i=j, 0, b(n-i*j, i-1, p+j)/j!), j=0..n/i)))
end:
a:= n-> b(n$2, 0):
seq(a(n), n=0..40);
MATHEMATICA
b[n_, i_, p_] := b[n, i, p] = If[n == 0, p!, If[i < 1, 0,
Sum[If[i == j, 0, b[n - i*j, i - 1, p + j]/j!], {j, 0, n/i}]]];
a[n_] := b[n, n, 0];
Table[a[n], {n, 0, 40}] (* Jean-François Alcover, Mar 17 2022, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A259828 A366094 A104080 * A078405 A109278 A367966
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jul 15 2020
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 23 23:26 EDT 2024. Contains 371917 sequences. (Running on oeis4.)