input 2 output 5, input 5 output 11 what's the rule?

1 answer

double it, add 1 works.