text: Expected Number of Trials to get N Consecutive Heads | Driver code ; Formula for number of trails for N consecutive heads
code: if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT N = 3 NEW_LINE print ( pow ( 2 , N + 1 ) - 2 ) NEW_LINE DEDENT