AMC 12 Mock Exam 10 Problem 19
Problem 19 of 25
For a positive integer , let be the exponent of the largest power of that divides . For example, because and is not divisible by . For how many positive integers is
Answer choices
Show solution
Solution
By Legendre's formula, . Write in base as with digits . Then , so where is the base- digit sum. (Check: , so .)
So the condition is exactly . Since , has at most six base- digits; write it with exactly six digits , allowing leading zeros. We count solutions of with . There are solutions without the upper bound. Those with some have exactly one such digit, and it equals or ; there are of them. The count is . Each solution gives a positive , since the digit sum is . (Forgetting the cap gives ; using only five digits gives .)
Tagged: Legendre's formula and base-3 digit sums