N can be 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 over or under the correct amount
The number that you are looking for is 540
147 divided by 7 which equals = 21
Rewrite g(x) as x-1
------
4
and then substitute this result for x in f(x) = x^2 - 3x + 3:
f(g(x)) = (x-1)^2 / 4^2 - 3(x-1)/4 + 3.
At this point we can substitute the value 5 for x:
f(g(5)) = (5-1)^2 / 4^2 - 3(5-1)/4 + 3
= 16/16 - 3(4/4) + 3 = 1 - 3 + 3 = 1
Therefore, f(g(5)) = 1.