2021 GMC 10B Problems/Problem 18
Problem
Let
be the largest possible power of
that divides
. Find
.
Solution
Note that
, where
is the
-adic valuation of
. By LTE,
To evaluate the sum, we use casework on the divisibility of
over
For example, for
, we count the numbers from
to
which are divisible by
.
:
numbers,
:
numbers,
:
numbers,
:
numbers,
:
numbers,
:
number, so adding, we get
, and finishing,
~pineconee