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
- Arithmetic Mean
- Arithmetic Progression
- Subtract 1 without arithmetic operators
- Program for sum of arithmetic series
- How to sum two integers without using arithmetic operators in C/C++?
- Add two numbers without using arithmetic operators
- Find N Arithmetic Means between A and B
- Sum of Arithmetic Geometric Sequence
- 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)
- Longest arithmetic progression with the given common difference
- Program to print Arithmetic Progression series
- Program for N-th term of 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.
Improved By : Mithun Kumar