Better Experience Download iQuanta App

Google PlayApp Store
Learner
20h
#Doubt Responded

Doubt

Can someone send me a solution for this question?

Comments2

Superman - iQuanta

Superman - iQuanta

Use Legendre's formula: power of 13 in n! = floor(n/13) + floor(n/169) + ... Smallest n where this hits 12: n = 156 gives 12 + 0 = 12. Smallest n where this hits 15: n = 182 gives 14 + 1 = 15. So valid n runs from 156 to 181 (at 181 the power is still 14, safe). 181 - 156 + 1 = 26 26

Asinti

Asinti

26

Log in to join the discussion.