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
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, 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, 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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,21
LINKS
FORMULA
a(n) = A324733(n) - A324829(n).
a(p) = 0 for all primes p.
PROG
(PARI)
A324712(n) = { my(v=0); fordiv(n, d, if(issquarefree(n/d), v=bitxor(v,
A323243(d)))); (v); }; \\ Needs also code from A323243.
A000523(n) = if( n<1, 0, #binary(n) - 1); \\ From A000523
A007814(n) = valuation(n, 2)
A324829(n) = hammingweight(A324712(n));
A324733(n) = { my(k=A324712(n)); if(!k, k, 1 + (A000523(k)-A007814(k))); };
A324734(n) = (A324733(n) - A324829(n));
CROSSREFS
Sequence in context: A014674 A015339 A137867 * A359902 A111143 A356969
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 17 2019
STATUS
approved

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 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)