Harmonic numbers (2)

Write a program that reads pairs of numbers nn and mm with nmn \ge m, and for each pair prints HnHmH_n - H_m.

Input

Input consists of several pairs of natural numbers nn and mm such that nmn \ge m.

Output

For every pair, print HnHmH_n - H_m with 10 digits after the decimal point.

Problem information

Author: Unknown
Translator: Salvador Roura

Generation: 2026-01-25T11:29:58.701Z

© Jutge.org, 2006–2026.
https://jutge.org