OFFSET
1,1
COMMENTS
Equivalently, the smallest number of draws k such that the probability of drawing balls of all the same color is <= 1/(n+1).
The sequence grows logarithmically; asymptotically, a(n) ~ log_2(n).
FORMULA
a(n) = min { k >= 1 : 2 * binomial(n, k) / binomial(2*n, k) <= 1/(n+1) }.
MATHEMATICA
a[n_]:=Module[{k=1}, While[2Binomial[n, k]/Binomial[2n, k]>1/(n+1), k++]; k]; Array[a, 75] (* Stefano Spezia, Apr 02 2026 *)
PROG
(PARI) a(n) = for(k=1, oo, if(2*binomial(n, k)*(n+1)<=binomial(2*n, k), return(k))) \\ Jason Yuen, Mar 31 2026
(R)
a <- numeric(100)
for(n in 1:100) {
### The threshold for drawing all the same color
threshold <- 1 / (n + 1)
for(k in 1:(2*n)) {
### P(all same color) = 2 * choose(n, k) / choose(2*n, k)
if(k <= n) p_same <- 2 * choose(n, k) / choose(2 * n, k)
else p_same <- 0
### Check if the probability meets the threshold condition
if(p_same <= threshold) {a[n] <- k; break}
}
}
cat(paste(a, collapse = ", "), "\n")
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael Shmoish, Mar 31 2026
STATUS
approved
