cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A071417 Triangle of expected coupon collection numbers rounded up; i.e., if aiming to collect part of a set of n coupons, the expected number of random coupons required to receive first the set with exactly k missing.

Original entry on oeis.org

0, 1, 0, 3, 1, 0, 6, 3, 1, 0, 9, 5, 3, 1, 0, 12, 7, 4, 3, 1, 0, 15, 9, 6, 4, 3, 1, 0, 19, 12, 8, 6, 4, 3, 1, 0, 22, 14, 10, 8, 6, 4, 3, 1, 0, 26, 17, 12, 9, 7, 5, 4, 3, 1, 0, 30, 20, 15, 11, 9, 7, 5, 4, 3, 1, 0, 34, 23, 17, 14, 11, 9, 7, 5, 4, 3, 1, 0, 38, 26, 20, 16, 13, 10, 8, 7, 5, 4, 3, 1, 0, 42
Offset: 0

Views

Author

Henry Bottomley, May 29 2002

Keywords

Examples

			Rows start
0;
1,0;
3,1,0;
6,3,1,0;
9,5,3,1,0;
etc.
		

Crossrefs

Cf. A060293 (left hand column), A067176.

Programs

  • Mathematica
    Table[Ceiling[n Sum[1/j, {j, k + 1, n}]], {n, 0, 12}, {k, 0, n}] // Flatten (* Michael De Vlieger, Jul 30 2017 *)

Formula

a(n, k) = ceiling(n*Sum_{j=k+1..n} 1/j) = ceiling(A067176(n, k)*k!/(n-1)!) = ceiling(A008279(n, n-k)*Sum_{j>=n-k} j*A008277(j-1, n-k-1)/n^j).