Problem E
Farey Sequence Length
Given a positive integer,
For this problem, you will write a program to compute the
length of the Farey Sequence of order
Input
The first line of input contains a single integer
Each data set consists of a single line of input. It
contains the data set number,
Output
For each data set there is a single line of output. The
single output line consists of the data set number,
Sample Input 1 | Sample Output 1 |
---|---|
4 1 6 2 15 3 57 4 9999 |
1 13 2 73 3 1001 4 30393487 |