ProjectEuler 320 Factorials divisible by a huge integer - 拼圖

Table of Contents

//Po中譯應該沒關係吧(?


N(i)定義為最小的整數n滿足 n!可以被(i!)^1234567890整除

S(u) = ΣN(i) 對所有 10 <= i <= u

已知S(1000) = 614538266565663

試求 S(1 000 000) mod 10^18



http://projecteuler.net/index.php?section=problems&id=320

目前過了六個半小時,有26人解出

--

All Comments

Kristin avatarKristin2011-01-18
呃 是 n! 能被 (i!)^1234567890 整除 這樣才對喔..