Complete the table:

Input Output
3 7
4 9
0 1
7 ?

The pattern I see is multiplying by 2 and adding 1.