In order to compute the mean and variance we need to recall Newton's binomial formula (a+b)m=m∑n=0(mn)anbm−n, which can be used to show that n∑x=0(nx)yx(1−y)n−x=(y+1−y)n=1, the PDF is normalized to one. The mean value is μ=n∑x=0x(nx)yx(1−y)n−x=n∑x=0xn!x!(n−x)!yx(1−y)n−x, resulting in μ=n∑x=0x(n−1)!(x−1)!(n−1−(x−1))!yx−1(1−y)n−1−(x−1), which we rewrite as μ=nyn∑ν=0(n−1ν)yν(1−y)n−1−ν=ny(y+1−y)n−1=ny.