Número Harmônico H_n
- Created by
- Renato Passos, Eng. de Software
- Reviewed by
- Renato Passos, Eng. de Software
Last updated: Apr 18, 2026
About this calculator
The Harmonic Number Calculator is an online tool that calculates the harmonic number H_n, denoted as the sum of the reciprocals of the first n positive integers. The formula to calculate the harmonic number is: H_n = 1 + 1/2 + 1/3 + ... + 1/n. This calculation is useful in various areas, such as algorithm analysis and number theory.
The harmonic number is a divergent sequence, meaning that as n increases, the value of H_n also increases without bound. However, the growth rate is very slow. For example, H_100 is approximately equal to 5.187. This behavior is important in many mathematical and computational applications.
Harmonic numbers have applications in various fields, such as algorithm complexity analysis, number theory, and physics. For example, the harmonic number is used to calculate the complexity of sorting and searching algorithms. Additionally, harmonic numbers also appear in physics problems, such as calculating the potential energy of a system.
When using the Harmonic Number Calculator, it is essential to be careful with the precision of the results, as the sum of the reciprocals can generate very large or very small values. Furthermore, it is crucial to choose the appropriate value of n for the problem at hand, as the harmonic number grows slowly with n.
Frequently asked questions
What is a harmonic number?
A harmonic number H_n is the sum of the reciprocals of the first n positive integers.
How to calculate the harmonic number?
The harmonic number is calculated as: H_n = 1 + 1/2 + 1/3 + ... + 1/n.
What are the applications of harmonic numbers?
Harmonic numbers have applications in algorithm analysis, number theory, and physics.
Does the sequence of harmonic numbers converge?
No, the sequence of harmonic numbers diverges.
How to use the Harmonic Number Calculator?
Just enter the desired value of n and the calculator will provide the corresponding harmonic number.