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!)
A292998 Number of sequences of balls colored with at most n colors such that exactly three balls are the same color as some other ball in the sequence. 0
1, 10, 87, 772, 7285, 74046, 812875, 9626632, 122643657, 1675253170, 24449818591, 379984902540, 6268557335677, 109443030279142, 2016658652491155, 39119860206021136, 797013832285599505, 17017679492994949722, 380045072079456330727 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Note that any such sequence has at least 3 balls and at most n+2, and that three matching balls must all be the same color.
LINKS
Jeremy M. Dover, Repetition in Colored Sequences of Balls, arXiv:1710.06049 [math.CO], 2017.
FORMULA
a(n) = n! * Sum_{k=3..n+2} binomial(k,3)/(n+2-k)!.
EXAMPLE
For n=2 colors a, b, the a(n)=10 sequences of balls are: aaa, bbb, abbb, babb, bbab, bbba, baaa, abaa, aaba, aaab.
MATHEMATICA
Table[n!*Sum[Binomial[k, 3]/(n + 2 - k)!, {k, 3, n + 2}], {n, 19}] (* Michael De Vlieger, Sep 28 2017 *)
PROG
(PARI) a(n) = n! * sum(k=3, n+2, binomial(k, 3)/(n+2-k)!); \\ Michel Marcus, Sep 29 2017
CROSSREFS
Row sums of triangle A292930.
Sequence in context: A198858 A331793 A121115 * A114648 A350134 A217417
KEYWORD
nonn
AUTHOR
Jeremy Dover, Sep 27 2017
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 24 17:10 EDT 2024. Contains 371962 sequences. (Running on oeis4.)