Trollathon #2.6 : Mysterious Function

Number Theory Level pending

f ( 50 ) = 3 f(50) = 3

f ( 31 ) = 5 f(31) = 5

f ( 2730 ) = 6 f(2730) = 6

f ( 384 ) = 2 f(384) = 2

What is f ( 2014 ) f(2014) ?


The answer is 9.

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

Zi Song Yeoh
Apr 3, 2014

Basically f(x) counts the number of 1s in the binary representation of x. So, f ( 2014 ) = 9 f(2014) = \boxed{9} .

What's wrong with f ( x ) = 2027874773 19006863852841680 x 3 + 429968127939 1267124256856112 x 2 1256486052891911 9503431926420840 x + 694995318319286 7919526605350 ? f(x)= -\dfrac{2027874773}{19006863852841680} x^3 + \dfrac{429968127939}{1267124256856112}x^2 - \dfrac{1256486052891911}{9503431926420840}x + \dfrac{694995318319286}{7919526605350}? One can construct infinitely many f ( x ) f(x) using Lagrange Interpolation, thus giving infinitely many choices for f ( 2014 ) . f(2014 ). This is why I don't like these problems.

Sreejato Bhattacharya - 7 years, 2 months ago

Log in to reply

This is a number theory problem, by the title, so the writer wants us to find a simple pattern, not use wolfram alpha.

Phil Peters - 7 years, 1 month ago

Log in to reply

What I'm trying to say is that there are more than one possible answers. The question never stated f ( x ) f(x) cannot be a polynomial.

Sreejato Bhattacharya - 7 years, 1 month ago

Log in to reply

@Sreejato Bhattacharya who allows people to add such idiotic questions?

Pulkit Gupta - 7 years, 1 month ago

I agree with Sreejato. By newtons interpolation as we get many such functions, there is no uniquenss in the value of the question. Also when mathematics is talked , Sri.Phil Peters, the simplicity is not a matter of concern. Admit what Sreejato pointed out.

indulal gopal - 6 years, 8 months ago
Finn Hulse
Apr 5, 2014

Expanding each term in base two, we find that the function counts the number of ones.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...