Define a function f ( n ) for some positive, integral n as the number of positive integral a < n for which the expression
a n − a
is also a positive integer. What is the maximum value of f ( n ) for n ≤ 1 0 0 0 ?
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.
The key is to use the Euclidean Algorithm . In short, if a number n is divisible by a , the expression will be an integer. For example, for n = 2 0 , a can equal 5 , 1 0 , 4 , 2 , or 1 . Convince yourself that this is true. Do you see why?
Anyways, this can be applied to the problem by realizing that we're really just looking for the number ≤ 1 0 0 0 with the most factors. You're welcome to use any means, but you could just know that this is 8 4 0 off the top of your head.
Now, you may be tempted to realize 8 4 0 has 3 2 factors and just put 3 2 as your final answer, but read this line:
… positive integral a < n …
Because we're overcounting by 1 since we obviously can't count 8 4 0 , our final answer is 3 2 − 1 = 3 1 .
oops, I just got sniped :P
Also, finding that 8 4 0 is the number you want is no trivial task. I challenge you to find a solution to why it is 8 4 0 :)
Log in to reply
Actually, I challenge you to find a solution to why it is 8 4 0 . Sniped. :D
Sage Code:
1 2 3 4 5 6 7 |
|
Next run:
1 2 3 4 5 6 |
|
It returns 3 1
Problem Loading...
Note Loading...
Set Loading...
Note that if a n − a is a positive integer, so is a n . Thus, we want to find the number n ≤ 1 0 0 0 such that it has the largest possible number of prime factors. Checking the list of Highly Composite numbers , we see that this number is 8 4 0 with 3 2 factors. Every single one of these factors can work for a except 8 4 0 since a < n . Thus, the answer is 3 1 .