We want to minimize:
f(n) = |3^n - 27^15 - 81^2|
We can also write the same in the powers of 3:
27^15 =(3^3 )^15 =3^45
81 = 3^4 ⇒ 81^2 = ( 3^4 )^2 = 3^8
So, f(n) = ∣ 3^n − 3^45 − 3^8 ∣ .
By factorizing:
3^45+3^8=3^8((3^37)+1)
Since 3^34 is significantly larger than 3^8. We can approximate that 3^45 + 3^8 will only be somewhat greater than 3^45
So the value of 3^n that minimizes the absolute difference should be closest to 3^45 + 3^8
Now using the answer options, checking values near 3^45 : n = 44: 3^44 is much smaller than 3^45 + 3^8
n = 45: 3^45 is very close, but less than 3^45 + 3^8
n = 46 : 3^46 = 3 x ( 3 )^45 = which is significantly larger.
Clearly, 3^45 < 3^45 + 3^8 < 3^46, and since 3^8 < 3^45 , the closest power should be 3^45.
So for me the smallest value of f(n) should occur when n = 45.
Answer is C.
It took me a lot of time to get this solution. Can someone suggest a better way please?
Bunuel