Let S(n)S(n) be the product of the digits of n∈N. Find all natural numbers n such that S(n)=n2−17n+56.
*Hint: try to first prove that n≥S(n).
Lemma: For all n∈N, we have that n≥S(n).
Let n=¯xkxk−1…x1x0=xk⋅10k+xk−1⋅10k−1…+x1⋅10+x0. Then we have that
S(n)=xkxk−1⋯x1x0=k∏i=0xi.
Since each xi∈{0,1,…,9}⇒xi≤9, we can establish the desired result as follows:
S(n)=xkxk−1⋯x1x0≤xk⋅9k≤xk⋅10k≤xk⋅10k+xk−1⋅10k−1…+x1⋅10+x0=n.
This proves the result that n≥S(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)=n2−17n+56≤n⇔n2−18n+56=(n−4)(n−14)≤0⇔4≤n≤14. 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: nn2−17n+56S(n)4445−456−1067−1478−1689−16910−14011−10112−42134314144 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=x2−17x+56 is given by −b2a=172=8.5. Therefore, the value of n2−17n+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)=n2−17n+56 is n=4.
Comments
Post a Comment