OFFSET
1,2
COMMENTS
a(157) = -12 is the first negative number in this sequence.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
From Amiram Eldar, Nov 09 2024: (Start)
a(n) = A057000(2*n).
Sum_{k=1..n} a(k) ~ c * n^2, where c = 4/Pi^2 = 0.405284... (A185199). (End)
MATHEMATICA
a[n_] := EulerPhi[2*n+1] - EulerPhi[2*n]; Array[a, 100] (* Amiram Eldar, Nov 09 2024 *)
PROG
(PARI) a(n) = eulerphi(2*n+1) - eulerphi(2*n); \\ Amiram Eldar, Nov 09 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric Chen, Dec 24 2014
STATUS
approved