Expectation two heads

expectation two heads & expectation n heads
showing same video how to solve expectation N heads.