Math 思考题!!

# Super Random

We have X=0

Let’s call an assignment to be X=randint(1,X+1) where randint will return an uniformly random integer between [l,r]

What’s the expected number of assignments to make X an given integer N?