Naruto and His New Jutsu
Practice
3.1 (17 votes)
Mathematics
Easy
Divisors
Mathematics
Mathamatics
Problem
35% Success 9913 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
Naruto learned a new jutsu (magical attack). The jutsu of intensity N requires chakra (energy) equal to the sum of odd divisors of N. Naruto wants to calculate the amount of chakra that will be used in this jutsu given the amount of intensity of the jutsu.
Input Format
The first line of input contains a single integer T denoting the number of test cases.
Each test case contains an integer N in a separate line.
Output Format
For each test case, print a single integer denoting the answer to that test case a new line.
Constraints
- \(1 \le T \le 10^{3}\)
- \(1 \le N \le 10^{9}\)
Submissions
Please login to view your submissions
Similar Problems
Points:20
1 votes
Tags:
EasyNumber Theory
Points:20
Tags:
MathematicsEasyMathematicsMathamatics
Points:20
Tags:
EasySimple-math
Editorial