A Logic Puzzle

Algebra Level 5

f ( 1111 ) = 4 f(1111)=4 f ( 1234 ) = 3 f(1234)=3 f ( 4567 ) = 2 f(4567)=2 f ( 1357 ) = 4 f(1357)=4 f ( 6518 ) = 4 f(6518)=4 f ( 3817 ) = 6 f(3817)=6 f ( 8008 ) = 6 f(8008)=6 f ( 1000 ) = 4 f(1000)=4 f ( 2014 ) = ? f(2014)=?

Hint: Each digit is valuable.


The answer is 2.

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

Daniel Liu
Jun 9, 2014

Let's suppose each digit is a value, as the hint says. From f ( 1111 ) = 4 f(1111)=4 , we see that f ( 1 ) = 1 \boxed{f(1)=1} .

From f ( 1000 ) = 4 f(1000)=4 , since f ( 1 ) = 1 f(1)=1 , we must have f ( 0 ) = 1 \boxed{f(0)=1} .

From f ( 8008 ) = 6 f(8008)=6 , since f ( 0 ) = 1 f(0)=1 , we have f ( 8 ) = 2 \boxed{f(8)=2} .

From f ( 1357 ) = 4 f(1357)=4 , since f ( 1 ) = 1 f(1)=1 , we have f ( 357 ) = 3 f(357)=3

From f ( 3817 ) = 6 f(3817)=6 , since f ( 8 ) = 2 f(8)=2 and f ( 1 ) = 1 f(1)=1 we have f ( 37 ) = 3 f(37)=3

This means f ( 5 ) = 0 \boxed{f(5)=0}

From f ( 6518 ) = 4 f(6518)=4 , since f ( 5 ) = 0 f(5)=0 , f ( 1 ) = 1 f(1)=1 , and f ( 8 ) = 2 f(8)=2 , we have f ( 6 ) = 1 \boxed{f(6)=1} .

From f ( 4567 ) = 2 f(4567)=2 , since f ( 5 ) = 0 f(5)=0 and f ( 6 ) = 1 f(6)=1 , we have f ( 47 ) = 1 f(47)=1

From f ( 1234 ) = 3 f(1234)=3 , since f ( 1 ) = 1 f(1)=1 we have f ( 234 ) = 2 f(234)=2 . This also means that f ( 3 ) 2 f(3)\le 2 .

Looking at f ( 47 ) = 1 f(47)=1 , we see that f ( 7 ) 1 f(7)\le 1 .

Looking that f ( 37 ) = 3 f(37)=3 , we see that we must have f ( 3 ) = 2 \boxed{f(3)=2} and f ( 7 ) = 1 \boxed{f(7)=1} for the two inequalities to be true.

Looking at f ( 4567 ) = 2 f(4567)=2 , since f ( 5 ) = 0 f(5)=0 , f ( 6 ) = f ( 7 ) = 1 f(6)=f(7)=1 , we have f ( 4 ) = 0 \boxed{f(4)=0} .

Looking at f ( 1234 ) = 3 f(1234)=3 , since we have f ( 1 ) = 1 f(1)=1 , f ( 3 ) = 2 f(3)=2 , and f ( 4 ) = 0 f(4)=0 , we have f ( 2 ) = 0 \boxed{f(2)=0}

We conclude that f ( 2 ) = 0 f(2)=0 , f ( 0 ) = 1 f(0)=1 , f ( 1 ) = 1 f(1)=1 , and f ( 4 ) = 0 f(4)=0 .

Thus, f ( 2014 ) = 0 + 1 + 1 + 0 = 2 f(2014)=0+1+1+0=\boxed{2} .

This is not a fun or a logical problem. This makes me sad. I was thinking digit sums in random mods... Your hint isn't very clear... D:

Finn Hulse - 7 years ago

Log in to reply

Well, it's not my fault you misinterpreted. The hint shouldn't be clear or fear of giving it away.

Think o the problem as one in one of the "trollathon" series.

Daniel Liu - 7 years ago

Log in to reply

Yes but those are terrible. No offense Zi Song. :/

Finn Hulse - 7 years ago

Our teacher trolled us all in our meth class by giving us this problem, nobody got it but he said it was trivial and "for kindergarteners". oh well he said this like 2 months ago

David Lee - 6 years, 10 months ago

Log in to reply

Your METH class??

John M. - 6 years, 9 months ago

Log in to reply

@John M. LOL!!! They do classes on drugs. :P

Sharky Kesa - 5 years, 10 months ago

Can you find a polynomial that represents f ( x ) f(x)

minimario minimario - 7 years ago

Log in to reply

You can find a polynomial for EVERYTHING. (But I'm too lazy)

Eric Hernandez - 6 years, 10 months ago

Superb question...Done in the same way..👍👍

The given hint is actually not required...The actual hint that helped me is values mentioned for 8 different numbers.

Vinay Sipani - 7 years ago

Missed this.Nice solution and it is explanatory.

Mardokay Mosazghi - 7 years ago

Superb man

urvashi urvi - 6 years, 11 months ago

I agree to disagree with you Finn ............... once you get the logic u get that why Danny quotes " Each digit is valuable " .............

Apoorv Padghan - 6 years, 10 months ago

REALLY, this is not mathematics and to make it so you should have said that:

f ( 1000 a + 100 b + 10 c + d ) = f ( a ) + f ( b ) + f ( c ) + f ( d ) f(1000a + 100b + 10c+ d) = f(a) + f(b) + f(c) + f(d)

or something that implies so.

and if this was clearly stated the problem will not be worth being level 2

Moaaz Al-Qady - 5 years, 10 months ago

Lol , it's level 5 !

A Former Brilliant Member - 4 years, 3 months ago

Well.... I transferred this to a to a separate document, then I accidentally typoed and had f ( 8008 ) = 8 f(8008)=8 . I knew how to do it, but that typo cost me basically all of my answers.

I know that this might've given away how to do the question, but you could've worded the hint differently.

Jeffery Li - 7 years ago

Log in to reply

No offense, but this was a mess.

Rafael Tages Melo - 6 years, 11 months ago

I still can't understand why it became 2. But I guessed it correctly. How crap D

Joshua Tenio - 6 years, 12 months ago

Log in to reply

i tried.the answer is very closed to me.but i dint succed

Vishnu Samudrala - 6 years ago

don't get it.

Jay Cyril Mijares - 6 years, 11 months ago

didnt get it

Divyam Dalmia - 6 years, 11 months ago

Really easy but i couldn't solve it. Shoot!!!!!!

anshumaan dey - 6 years, 11 months ago

Clearly the problem does not satisfy the purpose and the standard of being LVL 4

Anubhab Ghosh - 6 years, 11 months ago

Doesn't this solution assume that f(xy)=f(x)+f(y) and if so would that not have to have been stated explicitly ? Or are we at a liberty to make any assumption that coherently explains the given results and then apply the inferences we have made based on that assumption to the last input ?

Uraz Oflaz - 6 years, 11 months ago
Steven Zheng
Jul 18, 2014

The 'logic' behind this puzzle was beyond me. I miraculously guessed it right in one try.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...