What are the rules of 3,7,15,31,63, (), 255?

What are the rules of 3,7,15,31,63, (), 255?

2×3+1=7
2×7+1=15
……
63×2+1=127