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

 


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A324735 Difference between the binary length and the binary weight of A324712. a(n) = 0 if A324712(n) = 0. 4

%I #13 Jul 27 2024 15:56:03

%S 0,0,0,1,0,2,0,2,0,1,0,0,0,2,2,4,0,0,0,2,2,2,0,3,1,3,3,2,0,2,0,3,3,3,

%T 4,3,0,2,4,5,0,3,0,3,2,3,0,3,2,2,7,3,0,2,4,3,4,5,0,2,0,5,3,5,4,1,0,5,

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

%N Difference between the binary length and the binary weight of A324712. a(n) = 0 if A324712(n) = 0.

%C Number of nonleading 0-bits in A324712(n), with a(n) = 0 if A324712(n) = 0.

%H Antti Karttunen, <a href="/A324735/b324735.txt">Table of n, a(n) for n = 1..10000</a> (based on Hans Havermann's factorization of A156552)

%H <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>

%H <a href="/index/Pri#prime_indices">Index entries for sequences computed from indices in prime factorization</a>

%H <a href="/index/Si#SIGMAN">Index entries for sequences related to sigma(n)</a>

%F a(n) = A324728(n) - A324829(n).

%F If A324712(n) > 0, then a(n) = -1 + A324734(n) + A324724(n).

%F a(p) = 0 for all primes p.

%o (PARI)

%o A324712(n) = { my(v=0); fordiv(n, d, if(issquarefree(n/d), v=bitxor(v, A323243(d)))); (v); }; \\ Needs also code from A323243.

%o A000523(n) = if( n<1, 0, #binary(n) - 1); \\ From A000523

%o A324735(n) = { my(k=A324712(n)); if(!k,k,1 + (A000523(k)-hammingweight(k))); };

%Y Cf. A323243, A324712, A324728, A324733, A324829, A324724, A324734.

%K nonn

%O 1,6

%A _Antti Karttunen_, Mar 17 2019

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 18 21:47 EDT 2024. Contains 376002 sequences. (Running on oeis4.)