For a given n
the largest binom(n, k)
value is attained for k = [n/2]
(integer part of n/2
). For binom(n, k)
to be representable in double precision precision format, it is therefore sufficient for binom(n, [n/2])
to be representable.
The following lists the number of bits (binary digits) required for the exact representation of binom(n, [n/2])
(retrieved from Wolfram Alpha using queries similar to this one).
n binom(n, [n/2])
56 53 bits
57 54 bits
The following lists the values in binary exponent form for binom(n, [n/2])
.
n binom(n, [n/2])
1029 1.1... * 2^1023
1030 1.1... * 2^1024
The max n
for which all binom(n, k)
can be exactly represented in a double precision floating point (53 bits mantissa) is 56
.
The max n
for which all binom(n, k)
can be approximately represented in a double precision floating point (11 bit exponent) is 1029
.
The similar max limits for n!
are n = 18
(exact representation) and n = 170
(floating point approximation).