login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A348223 a(n) = Sum_{d|n} (-1)^(sigma(d) - 1). 4

%I #27 Oct 19 2021 14:26:33

%S 1,2,0,3,0,0,0,4,1,0,0,0,0,0,-2,5,0,2,0,0,-2,0,0,0,1,0,0,0,0,-4,0,6,

%T -2,0,-2,3,0,0,-2,0,0,-4,0,0,-2,0,0,0,1,2,-2,0,0,0,-2,0,-2,0,0,-6,0,0,

%U -2,7,-2,-4,0,0,-2,-4,0,4,0,0,-2,0,-2,-4,0,0,1,0,0,-6,-2,0,-2,0,0,-4,-2,0,-2,0,-2,0,0,2,-2,3,0,-4,0,0,-6

%N a(n) = Sum_{d|n} (-1)^(sigma(d) - 1).

%H Seiichi Manyama, <a href="/A348223/b348223.txt">Table of n, a(n) for n = 1..10000</a>

%F If p is an odd prime, a(p) = 0.

%F G.f.: Sum_{k>=1} (-1)^(sigma(k) - 1) * x^k/(1 - x^k).

%F From _Bernard Schott_, Oct 19 2021: (Start)

%F If p is even prime = 2, a(2^k) = k+1 for k >= 0.

%F If p is odd prime, a(p^even) = 1 and a(p^odd) = 0 (compare with formulas in A347992). (End)

%t a[n_] := DivisorSum[n, (-1)^(DivisorSigma[1, #] - 1) &]; Array[a, 100] (* _Amiram Eldar_, Oct 08 2021 *)

%o (PARI) a(n) = sumdiv(n, d, (-1)^(sigma(d)-1));

%o (PARI) my(N=99, x='x+O('x^N)); Vec(sum(k=1, N, (-1)^(sigma(k)-1)*x^k/(1-x^k)))

%Y Cf. A000203, A347991, A347992.

%K sign

%O 1,2

%A _Seiichi Manyama_, Oct 08 2021

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 10 04:17 EDT 2024. Contains 372356 sequences. (Running on oeis4.)