The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A348952 a(n) = -Sum_{d|n, d < sqrt(n)} (-1)^(d + n/d). 5

%I #13 Dec 14 2021 12:10:33

%S 0,1,-1,1,-1,2,-1,0,-1,2,-1,1,-1,2,-2,0,-1,3,-1,1,-2,2,-1,0,-1,2,-2,1,

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

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

%N a(n) = -Sum_{d|n, d < sqrt(n)} (-1)^(d + n/d).

%H Antti Karttunen, <a href="/A348952/b348952.txt">Table of n, a(n) for n = 1..20000</a>

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

%F For p odd prime, a(p) = a(p^2) = -1. - _Bernard Schott_, Nov 22 2021

%t Table[-DivisorSum[n, (-1)^(# + n/#) &, # < Sqrt[n] &], {n, 1, 80}]

%t nmax = 80; CoefficientList[Series[Sum[x^(k (k + 1))/(1 + x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest

%o (PARI) A348952(n) = -sumdiv(n,d,if((d*d)<n,(-1)^(d + (n/d)),0)); \\ _Antti Karttunen_, Nov 05 2021

%Y Cf. A048272, A056924, A228441, A258453, A305152, A333809, A348515, A348951, A348953, A348954, A348955, A348956.

%K sign

%O 1,6

%A _Ilya Gutkovskiy_, Nov 04 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 31 21:04 EDT 2024. Contains 373003 sequences. (Running on oeis4.)