A323286
Choix de Bruxelles (version 1): irregular table read by rows in which row n lists all the legal numbers that can be reached by halving or doubling some substring of the decimal expansion of n.
Original entry on oeis.org
2, 1, 4, 6, 2, 8, 10, 3, 12, 14, 4, 16, 18, 5, 20, 12, 21, 22, 6, 11, 14, 22, 24, 16, 23, 26, 7, 12, 18, 24, 28, 25, 30, 110, 8, 13, 26, 32, 112, 27, 34, 114, 9, 14, 28, 36, 116, 29, 38, 118, 10, 40, 11, 22, 41, 42, 11, 12, 21, 24, 42, 44, 13, 26, 43, 46, 12
Offset: 1
The triangle begins:
2;
1, 4;
6;
2, 8;
10;
3, 12;
14;
4, 16;
18;
5, 20;
12, 21, 22;
6, 11, 14, 22, 24;
16, 23, 26;
7, 12, 18, 24, 28;
25, 30, 110;
8, 13, 26, 32, 112;
27, 34, 114;
9, 14, 28, 36, 116;
29, 38, 118;
10, 40;
11, 22, 41, 42;
11, 12, 21, 24, 42, 44;
...
- Eric Angelini, Email to N. J. A. Sloane, Jan 14 2019.
- Rémy Sigrist, Rows n = 1..2000, flattened
- Eric Angelini, Lars Blomberg, Charlie Neder, Remy Sigrist, and N. J. A. Sloane, "Choix de Bruxelles": A New Operation on Positive Integers, arXiv:1902.01444 [math.NT], Feb 2019; Fib. Quart. 57:3 (2019), 195-200.
- Eric Angelini, Lars Blomberg, Charlie Neder, Remy Sigrist, and N. J. A. Sloane,, "Choix de Bruxelles": A New Operation on Positive Integers, Local copy.
- Brady Haran and N. J. A. Sloane, The Brussels Choice, Numberphile video (2020)
- Rémy Sigrist, PARI program for A323286
- N. J. A. Sloane, Coordination Sequences, Planing Numbers, and Other Recent Sequences (II), Experimental Mathematics Seminar, Rutgers University, Jan 31 2019, Part I, Part 2, Slides. (Mentions this sequence)
The number of terms in row n is given by
A323287.
See
A323460 for the (preferred) version 2 where n can also be mapped to itself.
For variants of the Choix de Bruxelles operation, see
A337321 and
A337357.
-
See Sigrist link.
-
def cdb(n):
s, out = str(n), set()
for l in range(1, len(s)+1):
for i in range(len(s)+1-l):
if s[i] == '0': continue
t = int(s[i:i+l])
out.add(int(s[:i] + str(2*t) + s[i+l:]))
if t&1 == 0: out.add(int(s[:i] + str(t//2) + s[i+l:]))
return sorted(out)
print([c for n in range(1, 25) for c in cdb(n)]) # Michael S. Branicky, Jul 24 2022
A323465
Irregular triangle read by rows: row n lists the numbers that can be obtained from the binary expansion of n by either deleting a single 0, or inserting a single 0 after any 1, or doing nothing.
Original entry on oeis.org
1, 2, 1, 2, 4, 3, 5, 6, 2, 4, 8, 3, 5, 9, 10, 3, 6, 10, 12, 7, 11, 13, 14, 4, 8, 16, 5, 9, 17, 18, 5, 6, 10, 18, 20, 7, 11, 19, 21, 22, 6, 12, 20, 24, 7, 13, 21, 25, 26, 7, 14, 22, 26, 28, 15, 23, 27, 29, 30, 8, 16, 32, 9, 17, 33, 34, 9, 10, 18, 34, 36, 11, 19
Offset: 1
From 6 = 110 we can get 6 = 110, 11 = 3, 1010 = 10, or 1100 = 12, so row 6 is {3,6,10,12}.
From 7 = 111 we can get 7 = 111, 1011 = 11, 1101 = 13, or 1110 = 14, so row 7 is {7,11,13,14}.
The triangle begins:
1, 2;
1, 2, 4;
3, 5, 6;
2, 4, 8;
3, 5, 9, 10;
3, 6, 10, 12;
7, 11, 13, 14;
4, 8, 16;
5, 9, 17, 18;
5, 6, 10, 18, 20;
7, 11, 19, 21, 22;
6, 12, 20, 24;
7, 13, 21, 25, 26;
7, 14, 22, 26, 28;
15, 23, 27, 29, 30;
8, 16, 32;
...
This is a base-2 analog of
A323460.
-
r323465[n_] := Module[{digs=IntegerDigits[n, 2]} ,Map[FromDigits[#, 2]&, Union[Map[Insert[digs, 0, #+1]&, Flatten[Position[digs, 1]]], Map[Drop[digs, {#}]&, Flatten[Position[digs, 0]]], {digs}]]] (* nth row *)
a323465[{m_, n_}] := Flatten[Map[r323465, Range[m, n]]]
a323465[{1, 22}] (* Hartmut F. W. Hoft, Oct 24 2023 *)
A323456
Irregular triangle read by rows: row n lists the numbers that can be obtained from the binary expansion of n by either deleting a single 0, or inserting a single 0 after any 1.
Original entry on oeis.org
2, 1, 4, 5, 6, 2, 8, 3, 9, 10, 3, 10, 12, 11, 13, 14, 4, 16, 5, 17, 18, 5, 6, 18, 20, 7, 19, 21, 22, 6, 20, 24, 7, 21, 25, 26, 7, 22, 26, 28, 23, 27, 29, 30, 8, 32, 9, 33, 34, 9, 10, 34, 36, 11, 35, 37, 38, 10, 12, 36, 40, 11, 13, 37, 41, 42, 11, 14, 38, 42, 44
Offset: 1
From 6 = 110 we can get 11 = 3, 1010 = 10, or 1100 = 12, so row 6 is {3,10,12}.
From 7 = 111 we can get 1011 = 11, 1101 = 13, or 1110 = 14, so row 7 is {11,13,14}.
The triangle begins:
2,
1, 4,
5, 6,
2, 8,
3, 9, 10,
3, 10, 12,
11, 13, 14,
4, 16,
5, 17, 18,
5, 6, 18, 20,
7, 19, 21, 22,
...
This is a base-2 analog of
A323286.
-
r323456[n_] := Module[{digs=IntegerDigits[n, 2]} ,Map[FromDigits[#, 2]&, Union[Map[Insert[digs, 0, #+1]&, Flatten[Position[digs, 1]]], Map[Drop[digs, {#}]&, Flatten[Position[digs, 0]]]]]] (* nth row *)
a323456[{m_, n_}] := Flatten[Map[r323456, Range[m, n]]]
a323456[{1,22}] (* Hartmut F. W. Hoft, Oct 24 2023 *)
-
row(n) = { my (r=Set(), w=0, s=0); while (n, my (v=1+valuation(n,2)); r = setunion(r, Set(n*2^(w+1)+s)); if (v>1, r = setunion(r, Set(n*2^(w-1)+s))); s += (n%(2^v))*2^w; w += v; n \= 2^v); r } \\ Rémy Sigrist, Jan 27 2019
-
def row(n):
b = bin(n)[2:]
s1 = set(b[:i+1] + "0" + b[i+1:] for i in range(len(b)) if b[i] == "1")
s2 = set(b[:i] + b[i+1:] for i in range(len(b)) if b[i] == "0")
return sorted(int(w, 2) for w in s1 | s2)
print([c for n in range(1, 23) for c in row(n)]) # Michael S. Branicky, Jul 24 2022
Showing 1-3 of 3 results.
Comments