Type: RemoteJudge 1000ms 125MiB

GCD SUM

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

i=1nj=1ngcd(i,j)\sum_{i=1}^n \sum_{j=1}^n \gcd(i, j)

输入格式

第一行一个整数 nn

输出格式

第一行一个整数表示答案。

2
5

提示

对于 30%30\% 的数据,n3000n\leq 3000

对于 60%60\% 的数据,7000n71007000\leq n\leq 7100

对于 100%100\% 的数据,n105n\leq 10^5

20251127提高选修课作业——数论

Not Claimed
Status
Done
Problem
9
Open Since
2025-11-27 19:00
Deadline
2026-1-6 23:59
Extension
24 hour(s)