P320
projecteuler.net

Factorials Divisible by a Huge Integer

ℹ️Published on Saturday, 15th January 2011, 10:00 pm; Solved by 987;
Difficulty rating: 50%

Let $N(i)$ be the smallest integer $n$ such that $n!$ is divisible by $(i!)^{1234567890}$

Let $S(u)=\sum N(i)$ for $10 \le i \le u$.

$S(1000)=614538266565663$.

Find $S(1\,000\,000) \bmod 10^{18}$.



Soluzione

Last modified: May 01, 2025. Website built with Franklin.jl and the lovely Julia programming language.