In number theory, an arithmetic number is an integer for which the average of its positive divisors is also an integer. Or in other words, a number N is arithmetic if the number of divisors divides the sum of divisors.
Given a positive integer n. The task is to check whether n is Arithmetic number or not.
Input : n = 6 Output : Yes Sum of divisor of 6 = 1 + 2 + 3 + 6 = 12. Number of divisor of 6 = 4. So, on dividing Sum of divisor by Number of divisor = 12/4 = 3, which is an integer. Input : n = 2 Output : No
- Find sum of all the factors of a number , say sum.
- Find count of divisors (say Count).
- Check if sum is divisible by count.
- Find the missing number in Arithmetic Progression
- Removing a number from array without changing its arithmetic mean
- Number of ways to remove elements to maximize arithmetic mean
- Find an integer that is common in the maximum number of given arithmetic progressions
- Arithmetic Mean
- Arithmetic Progression
- Program for sum of arithmetic series
- Sum of Arithmetic Geometric Sequence
- Subtract 1 without arithmetic operators
- How to sum two integers without using arithmetic operators in C/C++?
- Find N Arithmetic Means between A and B
- Add two numbers without using arithmetic operators
- Implement *, - and / operations using only + arithmetic operator
- Find Harmonic mean using Arithmetic mean and Geometric mean
- Ratio of mth and nth term in an Arithmetic Progression (AP)
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.