by fortenforge · 2y ago · 0 comments
...but its actually an interesting (and not super difficult) exercise in its own right to figure this out even if you don't know the formula. Encourage you all to give it a shot.
SPOILERS: 9999 = 3^2 * 11 * 101, so first subtract out the multiples of 3 (3333 of them), the multiples of 11 (909 of them), the multiples of 101 (99 of them). Note that we've now double-subtracted multiples of 33 (303 of them), multiples of 303 (33 of them), multiples of 1111 (9 of them) so add these back. Finally subtract 1 to not count 9999 itself.
phi(9999) = 9999 - 3333 - 909 - 101 + 33 + 303 + 9 - 1 = 6000
I guess my point is that the purpose of these problems is not to separate out people who know specific tricks from people who don't—its to separate out people who can reason their way through difficult mathematical problems and people who can't.
Trying to come up with everything from scratch could take a lot longer and be very frustrating when you've got other problems waiting for you to solve.
If that is frustrating instead of thrilling to you then you probably shouldn't do these competitions.
I think I can understand why the author complains about drilling for math contests. I think it’s the same reason high level chess players complain about opening book. Drilling is not fun and it reduces the creative element of solving the actual problems.
The fact that he wasn’t doing it for fun but for college admissions plays a lot into it as well. That kinda pressure can really kill the fun.
OP says in the article that he didn't understand what he was doing, but was just trying to imitate people who did to try to appear brilliant. And he claimed that most students in club were like this, due to parenting and teaching that was focused on resume building for ignorant Admissions Offices, instead of focused on learning.
https://artofproblemsolving.com/wiki/index.php/2022_AIME_I_P...
The totient formula isn't the hard part of the problem.
The test has a very short time limit (for the difficulty of the problems), and has many gruelingly complicated problems,so if you dont have the formulas down cold, you'll burn out during the contest.
Of course, if you don't care about silly speed-mathing contests, you can enjot the problems at a leisurely pace.
* The contest has 15 problems and a time limit of 3 hours, giving only an average of 12 minutes per problem.
* The average score is 4.83/15, from the official statistics [1].
* The statistics noted that only 5.17% of test takers answered this problem correctly, making it the second-hardest problem out of the 15 on the exam.
[1] "AIME 02/08/2022" https://amc-reg.maa.org/reports/generalreports.aspx
OP missing this point shows that he really was doing this for all the wrong reasons. He should have done FIRST or science bowl instead.
Asking for N mod 1000 was another cute twist that was meant to get you thinking about the divisibility properties of the totient function - "hmm, so (p-1) always divides \phi(n) for all prime factors p of n, how convenient..."
For every distinct prime factor p (so, of 9 is a factor, use 3 not 9), only (p-1)/p of the natural numbers ≤ n are relatively prime to it. Pime. This overcpunts nothing, since prime factors are relatively prime to each other. (Proving this requires some analysis of remaimders / modular arithmetic. But working an example shows the pattern).
This gives a formula, phi(n = Sum (p_i ^ e^i)) = n • Product ((p_i -1)/p))
This also shows how OP (and maybe the coach) missed the point of math team.