In the series 1 3 7 15 31: 3 occured the first time, 7 the second, 15 the third. Is there a formula for this?

When I am given a number from this series, how do I know whether it is the first, third, fifth, etc.?
11 answers 11