Stepan and pairs#4283

Stepan and pairs

1 Sekunde
128 Megabyte
Sehr leicht

Stepan is interested in the greatest common divisor of a pair of numbers, namely GCD(x, y). Given an integer , Stepan wants to know how many pairs of integers exist such that 1 \le i, j \le n and i = GCD(i, j).

Eingabe

One integer n~(1 \le n \le 10^6).

Ausgabe

Print the number of such pairs.

Beispiele

Beispiel 1

Loading
Loading