The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A318115 Number of compositions of n into exactly n nonnegative parts <= seven. 2
1, 1, 3, 10, 35, 126, 462, 1716, 6427, 24229, 91828, 349570, 1335698, 5119856, 19678452, 75814560, 292695291, 1132074847, 4385740683, 17015510820, 66102536360, 257103599280, 1001078753370, 3901733646660, 15220908863866, 59427261280126, 232201593611796 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = [x^n] ((x^8-1)/(x-1))^n.
a(n) <= A088218(n) with equality only for n < 8.
a(n) = Sum_{k=0..floor(n/8)} (-1)^k * binomial(n,k) * binomial(2*n-8*k-1,n-8*k). - Ilya Gutkovskiy, Nov 03 2021
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1,
`if`(i=0, 0, add(b(n-j, i-1), j=0..min(n, 7))))
end:
a:= n-> b(n$2):
seq(a(n), n=0..30);
CROSSREFS
Column k=7 of A305161.
Cf. A088218.
Sequence in context: A122068 A099908 A363781 * A318116 A167403 A318117
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Aug 17 2018
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 May 18 19:36 EDT 2024. Contains 372666 sequences. (Running on oeis4.)