A254058 Smallest a(n) such that C(a(n),n) >= 2^n.
2, 4, 5, 7, 8, 9, 11, 12, 13, 15, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 29, 30, 32, 33, 34, 35, 37, 38, 39, 41, 42, 43, 45, 46, 47, 48, 50, 51, 52, 54, 55, 56, 58, 59, 60, 61, 63, 64, 65, 67, 68, 69, 71, 72, 73, 74, 76, 77, 78, 80, 81, 82, 84, 85, 86, 87, 89
Offset: 1
Keywords
Links
- Chai Wah Wu, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
f[n_] := Block[{k = n}, While[ Binomial[k, n] < 2^n, k++]; k]; Array[f, 67] (* Robert G. Wilson v, Jan 28 2015 *)
-
PARI
a(n) = x=1; while(binomial(x, n) < 2^n, x++); x; \\ Michel Marcus, Jan 28 2015
-
Python
def A254058(n): b, a1, a2, t = 1, 0, n, 2**n while b < t: a2 += 1 a1 += 1 b = (b*a2)//a1 return a2 # Chai Wah Wu, Jan 30 2015
Comments