[中譯] ProjectEuler 386 Maximum length of an

看板puzzle (益智遊戲 - 數獨,拼圖,推理,西洋棋)作者 (嗶嗶)時間13年前 (2012/05/27 18:00), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
386. Maximum length of an antichain http://projecteuler.net/problem=386 使 n 為正整數,S(n) 為 n 的因數的集合。 S(n) 的子集 A,如果它只含有一個元素或是在它之中的所有元素不會被彼此整除,則我們 稱 A 為 S(n) 的 antichain。 舉例來說,S(30) = {1,2,3,5,6,10,15,30} {2,5,6} 就不是個 S(30) 的 antichain {2,3,5} 就是個 S(30) 的 antichain 使 N(n) 為 S(n) 最大長度的 antichain。 請算出ΣN(n),1 ≦ n ≦ 10^8。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.224.7.74
文章代碼(AID): #1FmVj68e (puzzle)
文章代碼(AID): #1FmVj68e (puzzle)