Problem

Source: Baltic Way 2020, Problem 17

Tags: number theory, modular arithmetic



For a prime number $p$ and a positive integer $n$, denote by $f(p, n)$ the largest integer $k$ such that $p^k \mid n!$. Let $p$ be a given prime number and let $m$ and $c$ be given positive integers. Prove that there exist infinitely many positive integers $n$ such that $f(p, n) \equiv c \pmod m$.