Mystery polynomial

Let f f be a polynomial with nonnegative integer coefficients. If f ( 1 ) = 7 f(1)=7 and f ( 7 ) = 7597 f(7)=7597 , what is f ( 10 ) ? f(10)?


The answer is 31102.

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.

2 solutions

Akiva Weinberger
Jul 3, 2015

Note that, because f ( 1 ) = 7 f(1)=7 , either f ( x ) = 7 x n f(x)=7x^n for some n n , or all of the coefficients are less than 7 7 . We can immediately check that the first option is impossible — if f ( x ) = 7 x n f(x)=7x^n , then f ( 7 ) = 7 n + 1 f(7)=7^{n+1} , and we see that f ( 7 ) = 7597 f(7)=7597 is not a power of 7 7 . Thus, all of the coefficients are less than 7 7 .

Writing f ( 7 ) f(7) in base 7 7 : f ( 7 ) = 7597 = 3110 2 7 f(7)=7597=31102_7 In other words: f ( 7 ) = 7597 = 3 ( 7 4 ) + 1 ( 7 3 ) + 1 ( 7 2 ) + 0 ( 7 1 ) + 2 ( 7 0 ) f(7)=7597=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 f(x)=3x^4+x^3+x^2+2 satisfies the conditions. (It is easy to check that f ( 1 ) = 7 f(1)=7 .) Since all of the coefficients are less than 7 7 , and every number has only one base 7 7 representation, we see this is the only solution. Thus: f ( x ) = 3 x 4 + x 3 + x 2 + 2 \boxed{f(x)=3x^4+x^3+x^2+2} And thus, f ( 10 ) = 31102 f(10)=31102 .

In other words, all you have to do is convert 7597 7597 to base 7 7 and you have your answer.

Akiva Weinberger - 5 years, 11 months ago

Log in to reply

A famous "mathemagic" trick.

Daniel Liu - 5 years, 11 months ago

Log in to reply

This question also answers another: "I have a polynomial f f with nonnegative integer coefficients, and you need to guess the polynomial. You're allowed to ask me for the values of f ( x ) f(x) for various x Z x\in\mathbb Z . How many values do you need to ask me?" The answer is 2 2 : Just ask me for f ( 1 ) f(1) , and then ask me for f ( f ( 1 ) ) f(f(1)) , like in my original question. (Unless f ( 1 ) f(1) is 1 1 , in which you should then ask for f ( 2 ) f(2) .)

It's important that x x should be an integer, because otherwise, you only need to ask me for one value! Ask for f ( π ) f(\pi) . Because π \pi is transcendental, the answer uniquely determines the polynomial.

Akiva Weinberger - 5 years, 11 months ago

Log in to reply

@Akiva Weinberger Yep, see this problem.

Daniel Liu - 5 years, 11 months ago
Priyanshu Mishra
Dec 7, 2015

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 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 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 = 7597 f(7) = { a }_{ n }7^{ n } + { a }_{ n - 1 }7^{ n - 1 } + ... + 7{ a }_{ 1 } + { a }_{ 0 } = 7597 .

Now we have to look for a polynomial such that 7 n 7597 { 7 }^{ n } \le 7597 and this is only possible with n n at most 4 4 .

Thus, we have

f ( 7 ) = 2401 a + 343 b + 49 c + 7 d + e = 7597 f(7) = 2401{ a } + 343b + 49c + 7d + e = 7597 .

Comparing and applying simple calculations yield

a = 3 a = 3 ; b = 1 b = 1 ; c = 1 c = 1 ; d = 0 d = 0 ; e = 2 e = 2 satisfying

f ( 1 ) = 3 + 1 + 1 + 0 + 2 = 7 f(1) = 3 + 1 + 1 + 0 + 2 = 7 .

Hence, f ( x ) = 3 x 4 + x 3 + x 2 + 2 f(x) = 3{ x }^{ 4 } + { x }^{ 3 } + { x }^{ 2 } + 2 .

Giving f ( 10 ) = 31102 f(10)= \boxed{31102} , the desired result.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...