Flips of a biased coin until the first head
A biased coin lands heads with probability on each flip, independently. You flip it over and over until the first head appears.
On average, how many flips does that take (counting the flip that lands heads)?