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.

Showing 1-1 of 1 results.

A353293 Irregular table T(n, k), n > 0, k = 1..A353292(n), read by rows: the n-th row contains in ascending order the distinct positive integers k <= n that have at least one common 1-bit with n.

Original entry on oeis.org

1, 2, 1, 2, 3, 4, 1, 3, 4, 5, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 1, 3, 5, 7, 8, 9, 2, 3, 6, 7, 8, 9, 10, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
Offset: 1

Views

Author

Rémy Sigrist, Apr 09 2022

Keywords

Comments

See A352938 for the other k's.

Examples

			Irregular table T(n, k) begins:
     1:   [1]
     2:   [2]
     3:   [1, 2, 3]
     4:   [4]
     5:   [1, 3, 4, 5]
     6:   [2, 3, 4, 5, 6]
     7:   [1, 2, 3, 4, 5, 6, 7]
     8:   [8]
     9:   [1, 3, 5, 7, 8, 9]
    10:   [2, 3, 6, 7, 8, 9, 10]
    11:   [1, 2, 3, 5, 6, 7, 8, 9, 10, 11]
    12:   [4, 5, 6, 7, 8, 9, 10, 11, 12]
    13:   [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
    14:   [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
    15:   [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
		

Crossrefs

Cf. A006519, A352938, A353292 (row lengths).

Programs

  • PARI
    row(n) = select (k -> bitand(n, k), [1..n])

Formula

T(n, 1) = A006519(n).
T(n, A353292(n)) = n.
Showing 1-1 of 1 results.