Let f be a polynomial with nonnegative integer coefficients. If f ( 1 ) = 7 and f ( 7 ) = 7 5 9 7 , what is f ( 1 0 ) ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
In other words, all you have to do is convert 7 5 9 7 to base 7 and you have your answer.
Log in to reply
A famous "mathemagic" trick.
Log in to reply
This question also answers another: "I have a polynomial f with nonnegative integer coefficients, and you need to guess the polynomial. You're allowed to ask me for the values of f ( x ) for various x ∈ Z . How many values do you need to ask me?" The answer is 2 : Just ask me for f ( 1 ) , and then ask me for f ( f ( 1 ) ) , like in my original question. (Unless f ( 1 ) is 1 , in which you should then ask for f ( 2 ) .)
It's important that x should be an integer, because otherwise, you only need to ask me for one value! Ask for f ( π ) . Because π is transcendental, the answer uniquely determines the polynomial.
I liked the solution by Akiva Weinberger. My solution is here:
We know that the general polynomial is
f ( x ) = a n x n + a n − 1 x n − 1 + . . . + a 1 x + a 0
We are given that
f ( 1 ) = a n + a n − 1 + . . . + a 1 + a 0 = 7
and that
f ( 7 ) = a n 7 n + a n − 1 7 n − 1 + . . . + 7 a 1 + a 0 = 7 5 9 7 .
Now we have to look for a polynomial such that 7 n ≤ 7 5 9 7 and this is only possible with n at most 4 .
Thus, we have
f ( 7 ) = 2 4 0 1 a + 3 4 3 b + 4 9 c + 7 d + e = 7 5 9 7 .
Comparing and applying simple calculations yield
a = 3 ; b = 1 ; c = 1 ; d = 0 ; e = 2 satisfying
f ( 1 ) = 3 + 1 + 1 + 0 + 2 = 7 .
Hence, f ( x ) = 3 x 4 + x 3 + x 2 + 2 .
Giving f ( 1 0 ) = 3 1 1 0 2 , the desired result.
Problem Loading...
Note Loading...
Set Loading...
Note that, because f ( 1 ) = 7 , either f ( x ) = 7 x n for some n , or all of the coefficients are less than 7 . We can immediately check that the first option is impossible — if f ( x ) = 7 x n , then f ( 7 ) = 7 n + 1 , and we see that f ( 7 ) = 7 5 9 7 is not a power of 7 . Thus, all of the coefficients are less than 7 .
Writing f ( 7 ) in base 7 : f ( 7 ) = 7 5 9 7 = 3 1 1 0 2 7 In other words: f ( 7 ) = 7 5 9 7 = 3 ( 7 4 ) + 1 ( 7 3 ) + 1 ( 7 2 ) + 0 ( 7 1 ) + 2 ( 7 0 ) We see that f ( x ) = 3 x 4 + x 3 + x 2 + 2 satisfies the conditions. (It is easy to check that f ( 1 ) = 7 .) Since all of the coefficients are less than 7 , and every number has only one base 7 representation, we see this is the only solution. Thus: f ( x ) = 3 x 4 + x 3 + x 2 + 2 And thus, f ( 1 0 ) = 3 1 1 0 2 .