ProjectEuler 495 Writing n as the prod - 拼圖
By George
at 2014-12-30T03:45
at 2014-12-30T03:45
Table of Contents
495. Writing n as the product of k distinct positive integers
https://projecteuler.net/problem=495
令W(n,k)為正整數n能表示成k個相異正整數的乘積的方法數。
例如,W(144,4) = 7。有7種方法能把144表示成4個相異正整數的乘積:
‧144 = 1 ×2 ×4 ×18
‧144 = 1 ×2 ×8 ×9
‧144 = 1 ×2 ×3 ×24
‧144 = 1 ×2 ×6 ×12
‧144 = 1 ×3 ×4 ×12
‧144 = 1 ×3 ×6 ×8
‧144 = 2 ×3 ×4 ×6
相異順序在此題內是視為同一種方法的。
另外,已知W(100!, 10) mod 1000000007 = 287549200。
請求出W(10000!, 30) mod 1000000007。
--
https://projecteuler.net/problem=495
令W(n,k)為正整數n能表示成k個相異正整數的乘積的方法數。
例如,W(144,4) = 7。有7種方法能把144表示成4個相異正整數的乘積:
‧144 = 1 ×2 ×4 ×18
‧144 = 1 ×2 ×8 ×9
‧144 = 1 ×2 ×3 ×24
‧144 = 1 ×2 ×6 ×12
‧144 = 1 ×3 ×4 ×12
‧144 = 1 ×3 ×6 ×8
‧144 = 2 ×3 ×4 ×6
相異順序在此題內是視為同一種方法的。
另外,已知W(100!, 10) mod 1000000007 = 287549200。
請求出W(10000!, 30) mod 1000000007。
--
Tags:
拼圖
All Comments
Related Posts
ProjectEuler 494 Collatz prefix famili
By Caitlin
at 2014-12-30T03:38
at 2014-12-30T03:38
ProjectEuler 492 Exploding sequence
By Catherine
at 2014-12-18T07:05
at 2014-12-18T07:05
ProjectEuler 491 Double pandigital num
By John
at 2014-12-18T06:58
at 2014-12-18T06:58
ProjectEuler 490 Jumping frog
By Lydia
at 2014-12-11T23:31
at 2014-12-11T23:31
ProjectEuler 489 Common factors between two sequences
By Carol
at 2014-12-11T23:07
at 2014-12-11T23:07