F(p)= 3p -2 and input is 2