cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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.

This page as a plain text file.
%I A368494 #44 Mar 23 2024 19:47:48
%S A368494 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,
%T A368494 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,
%U A368494 3,4,5,1,2,4,5,2,4,5,1,4,5,4,5,1,2,3,5,2,3,5
%N 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.
%H A368494 Paolo Xausa, <a href="/A368494/b368494.txt">Table of n, a(n) for n = 0..10384</a> (rows 0..2200 of the triangle, flattened).
%e A368494 Triangle begins:
%e A368494   [0] 1;
%e A368494   [1] 0;
%e A368494   [2] 1;
%e A368494   [3] 0;
%e A368494   [4] 1, 2;
%e A368494   [5] 2;
%e A368494   [6] 1;
%e A368494   [7] 0;
%e A368494   [8] 1, 2, 3;
%e A368494   ...
%e A368494 Row n = 50 is 1, 3, 4:
%e A368494   binary expansion of 50: 1 1 0 0 1 0
%e A368494   positions of zeros:     - - 4 3 - 1
%t A368494 Array[Replace[Flatten[Position[Reverse[IntegerDigits[#, 2]], 0]], {} -> {0}] &, 100, 0]
%Y A368494 Cf. A030308, A359400 (row sums), A048793 (positions of ones).
%K A368494 nonn,base,tabf,easy
%O A368494 0,6
%A A368494 _Paolo Xausa_, Mar 18 2024