Toggle navigation
CSUOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem1241--CC的问题
1241: CC的问题
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MB
Solved: 1
Submit: 3
Statistics
Description
CC的数学成绩非常好,并且他非常乐于挑战高难度的数学问题。现在问题来了:给定一个整数N,你需要求出∑gcd(i, N)(1<=i <=N)。
Input
一个整数,为N。
Output
一个整数,为所求的答案。
Sample Input
Copy
6
Sample Output
Copy
15
Source/Category