How can you find an output number when you know an input number?

Here is an example of a pattern

Input / Output
1 / 3
2 / 7
3 / 11
4 / 15
5 / 19
6 / 23