OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
Let n = 2^k*m, GCD(m, 2) = 1. Then a(n) = phi((n + 1)/2) if k = 0, phi(n + 1) if k = 1 and (phi(n + 1))/2 if k > 1. - Vladeta Jovovic, Feb 06 2002
EXAMPLE
a(6) = 6; phi(6*7/2)/phi(6) = phi(21)/phi(6) = 12/2 = 6.
MAPLE
with(numtheory); A067541:=n->phi(n*(n+1)/2)/phi(n); seq(A067541(k), k=1..100); # Wesley Ivan Hurt, Nov 04 2013
MATHEMATICA
Table[EulerPhi[n*(n+1)/2]/EulerPhi[n], {n, 1, 100}] (* Vincenzo Librandi, Mar 05 2013 *)
PROG
(PARI) a(n)=eulerphi(n*(n+1)/2)/eulerphi(n) \\ Charles R Greathouse IV, Mar 05 2013
(Magma) [EulerPhi(n*(n+1) div 2)/EulerPhi(n): n in [1..100]]; // Vincenzo Librandi, Mar 05 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jan 28 2002
STATUS
approved