The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A068773 Alternating sum phi(1) - phi(2) + phi(3) - phi(4) + ... + ((-1)^(n+1))*phi(n). 4

%I

%S 1,0,2,0,4,2,8,4,10,6,16,12,24,18,26,18,34,28,46,38,50,40,62,54,74,62,

%T 80,68,96,88,118,102,122,106,130,118,154,136,160,144,184,172,214,194,

%U 218,196,242,226,268,248,280,256,308,290,330,306,342,314,372,356

%N Alternating sum phi(1) - phi(2) + phi(3) - phi(4) + ... + ((-1)^(n+1))*phi(n).

%F a(n) = Sum_{k=1..n} (-1)^(k+1)*phi(k).

%e a(3) = phi(1) - phi(2) + phi(3) = 1 - 1 + 2 = 2.

%o (PARI) a068773(m)=local(s,n); s=0; for(n=1,m, if(n%2==0,s=s-eulerphi(n),s=s+eulerphi(n)); print1(s,","))

%Y Cf. A000010, A067929.

%K easy,nonn

%O 1,3

%A _Klaus Brockhaus_, Feb 28 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified January 15 10:12 EST 2021. Contains 340187 sequences. (Running on oeis4.)