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.