Maximum entropy distribution on the nonnegative integers (source code)

= Maximum entropy distribution on the nonnegative integers

Among distributions on $\{0,1,2,\ldots\}$ with fixed <expected value> $\mu$, the <geometric distribution> with success probability $1/(1+\mu)$ uniquely maximizes <information entropy>. Its entropy is
$$
(1+\mu)h_2\!\left(\frac1{1+\mu}\right).
$$