Comment

Comment by hardlianotion

Expected index given by

E [X] = \sum_{i \in [2,100)} p(X < i)\prod_{j < i}p (X \ge j)i.

Edit: Sorry rest of reply was wrong. Had to account for not hitting until i^th loop.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton