Question 369229
3 >> 8
10 >> 29
20 >> 59

There is no set way to solve this, but here is the function:
[output]=3[input]-1