Define a function f : N → Z + ∪ { 0 } such that
f ( 1 ) = 0 , f ( p ) = 1 for p prime, and f ( m n ) = m f ( n ) + n f ( m ) .
Let A be the sum of all n < 1 , 0 0 0 , 0 0 0 such that f ( n ) = n .
Let B be the maximum value of n f ( n ) for n ≤ 1 0 0 0 .
Let C be the maximum value of f ( n ) for n ≤ 1 0 0 0 .
Finally, let D = f ( 1 0 0 0 ) + f ( 4 2 ) .
Find A + 2 B + C + D .
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.
Especially since this is my 1000 follower question I sure hope I haven't messed up somewhere. :P My solution involved a bit of hand-waving so if anyone has suggestions about tightening things up I would be appreciative.
A big "Thank you!" to all those, (both staff and members), who make this such an amazing site to participate on. :D
Log in to reply
NO, THANK YOU for making this such an amazing site! I've learned great things from great people like you. Next stop: 1 trillionz followers!
Log in to reply
Haha. Thanks! I can certainly say the same thing about you. :D
I've solved A B D but haven't got C and I didn't understand the solution for C can u please explain me clearly
Log in to reply
Finding C involved a bit of trial and error. I basically looked first at n that had large S n values and established lower bounds along the way. Once I found that f ( 2 8 ∗ 3 ) = 3 3 2 8 , I could establish a lower bound on S n of 3 + 3 1 , (since n ≤ 1 0 0 0 ). Then it was just a matter of finding the few S n that met this criteria and calculating the corresponding f ( n ) values. Using the formulas I established for f ( n ) and S n this was manageable to do by hand, but if we were looking at all n less than, say, a million, we would need to write a computer program to assist us.
Frankly , when I solved this question using 2 and a half pages and some cheating(took help from a sir from my coaching class :P Btw both of you think alike ) , I figured I was going wrong somewhere .But got chilled when I saw it matched with your solution .
Congrats sir!
Yes , you are late in posting this question . Also , go for 1 Trillion Fllowers ! ⌣ ∧ ∧
Log in to reply
Thanks, Azhaghu! I'm glad you were able to persevere and solve this problem. I did have this idea in mind around the time I reached 1000 followers, but I didn't get around to figuring out the details until last night. Better late than never. :)
A beautiful question! I messed up on finding C but managed to recover. Just curious, what's with the name? "A four-part trilogy", specifically the trilogy bit.
Thank you for all the wonderful questions you've posted. Congratulations on the well earned 1000 follows. Keep on being awesome Brian.
Log in to reply
Thanks Isaac; I really appreciate the kind words. Finding C was probably the trickiest part; there were quite a few cases to check in order to find the best "balance" of n and S n .
The title is an homage to Douglas Adams' "Hitchhiker's Guide to the Galaxy" series of books. He had originally written three books and referred to them (appropriately) as a trilogy, but then decided to write a fourth (and fifth) book. Despite the series no longer being a "proper" trilogy he nevertheless continued to refer to it as such just for fun. To mirror this humour I threw in D at the end while still calling the problem a "trilogy", and included the number 4 2 , (a number of great significance in the book series), to further the connection.
Same here ⌣ ¨ . But still a great question!
Beautiful problem! I had some trouble with C though, but I made it...
Thanks for giving such a wonderful problem . I couldn't solve it. Anyway,From your solution , I gained some knowledge .I'm expecting more problems from you..!
This is A BLOCK BLUSTER Question With a SUPER SOLUTION!!!!UPVOTED AND LIKED!!!!
Problem Loading...
Note Loading...
Set Loading...
First note that for any prime p and positive integer a we have that f ( p a ) = a p a − 1 .
(This can be verified by induction on a . For a = 1 we have f ( p ) = 1 = a p 1 − 1 . If the statement is true for some a > 1 then
f ( p a + 1 ) = f ( p ∗ p a ) = p f ( p a ) + p a f ( p ) = p a p a − 1 + p a = ( a + 1 ) p ( a + 1 ) − 1 ,
and thus the statement is true for a + 1 as well.)
So for the prime decomposition n = p 1 a 1 p 2 a 2 p 3 a 3 . . . we can show by a similar induction on the number of primes that
f ( n ) = n ( p 1 a 1 + p 2 a 2 + p 3 a 3 + . . . ) .
Now to have f ( n ) = n we require that this last bracketed expression, (call it S n ), be equal to 1 . Since all the denominators are prime, this can only happen if one of the terms p k a k = 1 and all the others equal 0 . Thus we can only have f ( n ) = n when n = p p for some prime p . This gives us the value
A = 2 2 + 3 3 + 5 5 + 7 7 = 8 2 6 6 9 9 .
Next, S n is equivalent to n f ( n ) . We can maximize this by maximizing the exponents and minimizing the prime factors under the condition that n ≤ 1 0 0 0 . we have 2 9 = 5 1 2 giving us n f ( n ) = 2 9 . Next down the list is 2 8 ∗ 3 giving us n f ( n ) = 4 + 3 1 < 2 9 . As we "power down" 2 we can increase the powers of other prime factors, but not enough to compensate for the lessening power of 2 , leading us to conclude that B = 2 9 .
Now for C , we need to maximize the product of n and S n . We found that S n is maximized for n = 5 1 2 , but for this value n S n = 2 3 0 4 . We can do better by increasing n while sacrificing S n to a small extent. The next on the list is n = 2 8 ∗ 3 , for which f ( n ) = 7 6 8 ( 4 + 3 1 ) = 3 3 2 8 . We can now rule out any S n less than 3 + 3 1 . Looking for such values for larger n we next look at n = 2 7 ∗ 7 , for which f ( n ) = 3 2 6 4 . Next we have 2 6 ∗ 3 ∗ 5 = 9 6 0 , for which f ( n ) = 3 3 9 2 . Any lesser n and/or power of 2 will necessarily yield a smaller f ( n ) than this, so C = 3 3 9 2 .
Finally, since 1 0 0 0 = 2 3 5 3 we have f ( 1 0 0 0 ) = 1 0 0 0 ( 2 3 + 5 3 ) = 2 1 0 0 , and since 4 2 = 2 ∗ 3 ∗ 7 we have f ( 4 2 ) = 4 2 ( 2 1 + 3 1 + 7 1 ) = 4 1 , making D = 2 1 4 1 .
(The "four-part trilogy" in the title is in reference to the 4 2 component of this question, in case anyone was wondering.)
Thus A + 2 B + C + D = 8 2 6 6 9 9 + 9 + 3 3 9 2 + 2 1 4 1 = 8 3 2 2 4 1 .