x = 2^(N+1)-2
how it will calculated
bcz my answer is not maching with this
Expectation example
what is the value of n?
n can be any value given by user but my question is how did it calculated mathematically
in the video lecture of probability expectation
for more better understanding read about it and watch video again. And if n is very large it can be calculated using mod operation by a prime number. Thanks