Find the number of positive integers n such that 2 ≤ n ≤ 1 0 0 and there exists a polynomial f ( x ) with real coefficients and degree < n such that for all integers x , f ( x ) is an integer if and only if x is not a multiple of n .
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.
@Sreejato Bhattacharya Can you review this and see if the answer should be 35?
Log in to reply
I think he got 3 4 probably because he ignored the case n = 2 (for n = 2 , f ( x ) = 2 n − 1 works). Counting prime powers including 2 , I get 3 5 .
EDIT: Please ignore the above nonsense. I shouldn't comment before reading carefully. Let me check them again.
EDIT 2: Yeah, 3 5 seems right. So sorry. Sincere apologies from my part.
A small fix: You're taking it for granted that the coefficients of f ( x ) are rational. This is almost trivial to notice (perhaps that's why you forgot to mention it), since if { a 1 , a 2 , ⋯ , a k } is any set of integers for which f ( x ) ∈ Z where k = de g ( f ( x ) ) + 1 , by Lagrange Interpolation, f ( x ) = i = 1 ∑ k f ( a i ) j = i ∏ a i − a j x − a j whose coefficients are clearly rational.
Otherwise, really nice solution! How I did it was by considering L P ( x ) , where L is the lcm of the denominators of the coefficients, and then for some prime p , looking at v p ( L P ( 0 ) ) . I'll be posting my solution shortly.
i just included 1 and got the answer 36.I forgot I have to find all n≥2 and got the whole sum wrong :(
Problem Loading...
Note Loading...
Set Loading...
Firstly I would like to point out that there is a mistake in the problem. It should be 2 < n ≤ 1 0 0 rather than the other way round. The answer would be 35 if it meant this exactly.
The problem will be split into two parts: - The case when n has two or more distinct prime factors. - The case when n can be written as p a where p is prime and a is a positive integer larger than 1.
Now for the first case we shall show that there cannot exist a polynomial for n . Assume there is such a polynomial for n . Let n = p 1 δ 1 p 2 δ 2 ⋯ p k δ k . Now let f ( x ) have denominator q > 1 . Now using Newtonian interpolation which is defined for a polynomial of degree < n f ( ω + n ) = i = 0 ∑ n − 1 ( − 1 ) n − 1 − i ( i n ) f ( ω + i ) For some 1 ≤ s ≤ k we therefore have f ( p s δ s + n ) = i = 0 ∑ n − 1 ( − 1 ) n − 1 − i ( i n ) f ( p s δ s + i ) . Now note that the LHS is an integer. All terms on the right hand side are also integers maybe except for ( n − p s δ s n ) f ( n ) term. However this must mean that it is an integer. Now noting that p s ∤ ( p s δ s n ) ⟹ p s ∤ q . This holds for any s (within limits) therefore we have g cd ( n , q ) = 1 . Finally take ω = 1 for the interpolation formula and we recieve f ( 1 + n ) = i = 0 ∑ n − 1 ( − 1 ) n − 1 − i ( i n ) f ( 1 + i ) . Once again, on the LHS and RHS, all terms are integers except possible for ( 1 n ) f ( n ) term. However this also must be an integer. So we can say that q ∤ n . But g cd ( q , n ) = 1 ⟹ q = 1 thus a contradiction. Therefore n cannot have two or more distinct prime factors.
Finally, for any n = p a we have a polynomial that satisfies the condition, namely f ( x ) = ( p a ) ! p a − 1 ( x − 1 ) ( x − 2 ) … ( x − p a + 1 ) . This can easily be checked to show that it satisfies the conditions.
Counting all prime powers between 2 and 1 0 0 we get 3 4 . (See edit below)
Note : I do believe that this problem is one of the best on brilliant.org. Trying to solve it has opened my mind up to new skills and techniques and inspired me to learn more! The total time I spend on this problem is around 15 hours. But hey exams are over!
EDIT Now that the question's answer has been modified to suit the original wording we can ignore my note at the top. As 2 is prime, we add one to our count which gives us 3 5 .