f(3n) = 3f(n) | f(250) =?

Question

f(3n) = 3f(n)

f(3n+1) = 3f(n)-1

f(3n+2) = 3f(n)-2

f(1) = f(2) = 1

f(250)=?