OFFSET
1,1
COMMENTS
The old entry with this sequence number was a duplicate of A008831.
a(n) is also the number of integers prime to n in the interval [n+1, 5n-1]. [From Washington Bomfim, Oct 10 2009]
REFERENCES
M. N. Huxley, Area, Lattice Points and Exponential Sums, Oxford, 1996; p. 7.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
a(1) = 3; thereafter a(n) = 4*phi(n) = 4*A000010(n).
EXAMPLE
The three rational numbers of height 1 are 0, 1 and -1.
PROG
(PARI) A002246(n) = if(1==n, 3, 4*eulerphi(n)); \\ Antti Karttunen, Dec 05 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 02 2008
EXTENSIONS
A simpler alternative description added to the name field by Antti Karttunen, Dec 05 2017
STATUS
approved