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!)
A368494 Irregular triangle read by rows: row n lists the 1-based positions (starting from the right) of zeros in the binary expansion of n, or 0 if the binary expansion of n contains only ones. 6
1, 0, 1, 0, 1, 2, 2, 1, 0, 1, 2, 3, 2, 3, 1, 3, 3, 1, 2, 2, 1, 0, 1, 2, 3, 4, 2, 3, 4, 1, 3, 4, 3, 4, 1, 2, 4, 2, 4, 1, 4, 4, 1, 2, 3, 2, 3, 1, 3, 3, 1, 2, 2, 1, 0, 1, 2, 3, 4, 5, 2, 3, 4, 5, 1, 3, 4, 5, 3, 4, 5, 1, 2, 4, 5, 2, 4, 5, 1, 4, 5, 4, 5, 1, 2, 3, 5, 2, 3, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10384 (rows 0..2200 of the triangle, flattened).
EXAMPLE
Triangle begins:
[0] 1;
[1] 0;
[2] 1;
[3] 0;
[4] 1, 2;
[5] 2;
[6] 1;
[7] 0;
[8] 1, 2, 3;
...
Row n = 50 is 1, 3, 4:
binary expansion of 50: 1 1 0 0 1 0
positions of zeros: - - 4 3 - 1
MATHEMATICA
Array[Replace[Flatten[Position[Reverse[IntegerDigits[#, 2]], 0]], {} -> {0}] &, 100, 0]
CROSSREFS
Cf. A030308, A359400 (row sums), A048793 (positions of ones).
Sequence in context: A123149 A185158 A185700 * A061926 A180835 A053188
KEYWORD
nonn,base,tabf,easy
AUTHOR
Paolo Xausa, Mar 18 2024
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 May 23 10:34 EDT 2024. Contains 372760 sequences. (Running on oeis4.)