What is the probability that having $n$ random numbers (each maximum $n$-bit - numbers can be repeated) there is a sum of up to $2^n$?

27 Views Asked by At

What is the probability that having $n$ random numbers (each maximum $n$-bit - numbers can be repeated) there is a sum of up to $2^n$ (the sum of any number of numbers - minimum one number, maximum $n$ numbers)?

1

There are 1 best solutions below

0
On BEST ANSWER

Hint: You can use stars and bars to find the number of ordered ways to express $2^n$ as a sum of $k$ terms. How many ordered choices of $n$ numbers are there? Take the ratio.