[中譯] ProjectEuler 401 Sum of squares of div

看板puzzle (益智遊戲 - 數獨,拼圖,推理,西洋棋)作者 (嗶嗶)時間13年前 (2012/11/11 22:41), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
401. Sum of squares of divisors http://projecteuler.net/problem=401 6 的因數有 1, 2, 3, 6。 這些因數的平方和則為 1 + 4 + 9 + 36 = 50。 使 sigma2(n) 表示為 n 的所有因數的平方和,因此 sigma2(6) = 50。 使 SIGMA2(n) 表示為所有 1 至 n 的 sigma2(n) 的和。 SIGMA2(n) 的前六項為 1, 6, 16, 37, 63 和 113。 請求出 SIGMA2(10^15) 除以 10^9 的餘數。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.224.10.126
文章代碼(AID): #1Gdxaa8J (puzzle)
文章代碼(AID): #1Gdxaa8J (puzzle)