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
- Arithmetic Mean
- Arithmetic Progression
- How to sum two integers without using arithmetic operators in C/C++?
- Subtract 1 without arithmetic operators
- Add two numbers without using arithmetic operators
- Find N Arithmetic Means between A and B
- Sum of Arithmetic Geometric Sequence
- Program for sum of arithmetic series
- Find Harmonic mean using Arithmetic mean and Geometric mean
- Implement *, - and / operations using only + arithmetic operator
- Ratio of mth and nth term in an Arithmetic Progression (AP)
- Program to print Arithmetic Progression series
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. 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.