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!)
A324734 Number of 0-bits present between the most and the least significant 1-bits in A324712(n), and 0 if A324712(n) = 0; a(n) = A324733(n) - A324829(n). 3

%I #8 Mar 17 2019 21:07:53

%S 0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,2,1,0,0,1,2,1,2,0,0,0,0,2,2,

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

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

%N Number of 0-bits present between the most and the least significant 1-bits in A324712(n), and 0 if A324712(n) = 0; a(n) = A324733(n) - A324829(n).

%H Antti Karttunen, <a href="/A324734/b324734.txt">Table of n, a(n) for n = 1..10000</a>

%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) = A324733(n) - A324829(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,

%o A323243(d)))); (v); }; \\ Needs also code from A323243.

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

%o A007814(n) = valuation(n,2)

%o A324829(n) = hammingweight(A324712(n));

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

%o A324734(n) = (A324733(n) - A324829(n));

%Y Cf. A323243, A324712, A324733, A324829, A324735.

%K nonn

%O 1,21

%A _Antti Karttunen_, Mar 17 2019

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 April 25 06:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)