A Problem from the Australian Math Olympiad

Let S(n)S(n) be the product of the digits of nN. Find all natural numbers n such that S(n)=n217n+56.
*Hint: try to first prove that nS(n).

Lemma: For all nN, we have that nS(n).
Let n=¯xkxk1x1x0=xk10k+xk110k1+x110+x0. Then we have that S(n)=xkxk1x1x0=ki=0xi. Since each xi{0,1,,9}xi9, we can establish the desired result as follows: S(n)=xkxk1x1x0xk9kxk10kxk10k+xk110k1+x110+x0=n. This proves the result that nS(n) for all natural numbers n.

Using the result of the above lemma, we can now establish an ineqaulity in terms of one variable: S(n)=n217n+56nn218n+56=(n4)(n14)04n14. Therefore, it suffices to check if the condition is satsifed for the natural numbers from 4 to 14. Stragithforward computations will prduce the follwoing table: nn217n+56S(n)444545610671478168916910140111011242134314144 A simple way of getting the above values would have been to note that the x-value of the vertex of the parabola defined by y=x217x+56 is given by b2a=172=8.5. Therefore, the value of n217n+56 would be symmetric about the point x=8.5. From the table above, we can find that the only natural number that satsifes S(n)=n217n+56 is n=4.

Comments