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!)
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. 21

%I #85 May 11 2024 21:55:51

%S 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,

%T 7,12,18,24,28,25,30,110,8,13,26,32,112,27,34,114,9,14,28,36,116,29,

%U 38,118,10,40,11,22,41,42,11,12,21,24,42,44,13,26,43,46,12

%N 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.

%C Take the decimal expansion of n, say n = d_1 d_2 ... d_k. We can choose to map it to any number that can be obtained by the following process. Take any substring d_i, d_{i+1}..., d_j that does not begin with 0. If the number represented by this substring is odd, replace it with twice the number. If it is even either halve it or double it.

%C The substring may increase or decrease in length. We do not pad it with zeros if it decreases in length.

%C For example, if n = 20129, then by acting on single-digit substrings we get 10129, 40129, 20229, 20119, 20149, 201218. Acting on 2-digit substrings we get in addition 2069 (halve the 12!), 20249, 20158. From 3-digit substrings we also get 40229, 20258; from 4-digit substrings we get 40249; and from 5-digit substrings we get 40258.

%C _Eric Angelini_ asks what is the smallest number of steps needed to reach n if we start at 1 and repeatedly apply this process? We can reach 2 in 1 step, 4 in 2 steps, 13 in five steps, and so on.

%C _Lars Blomberg_ has shown, by considering just the final digit of the numbers in the trajectory, that no number ending in 0 or 5 can be reached from 1. All other numbers can be reached (cf. A323454) - see proof below.

%C Update, Jan 15 2019: Lorenzo Angelini has found that 3 can be reached from 1 in 11 steps: 1, 2, 4, 8, 16, 112, 56, 28, 14, 12, 6, 3. No shorter path is possible.

%C From _N. J. A. Sloane_, Jan 16 2019: (Start)

%C Theorem: If k > 1 does not end in 0 or 5 then it can be reached from 1.

%C Proof: Suppose not, and let k be the smallest such number. Note that the allowed operations are invertible: if a -> b then also b -> a. So that means that

%C *** all the descendants of k must be bigger than k ***

%C (if there was a descendant < k, then it would also be unreachable from 1, which is a contradiction to k being the smallest).

%C All digits of k must be odd (if there were an even digit > 0, halve it and get a smaller number; if there is a zero digit, say we see a0, then we halve a0 and get a smaller number).

%C If all the digits of k are 1, do 111...1 -> 111...2 -> 55..56, a smaller number.

%C If there is a digit 3, 7, or 9, we know we can get that single digit down to 1 (see A323454), again a contradiction.

%C But all the digits can't be 5. QED (End)

%D Eric Angelini, Email to N. J. A. Sloane, Jan 14 2019.

%H Rémy Sigrist, <a href="/A323286/b323286.txt">Rows n = 1..2000, flattened</a>

%H Eric Angelini, Lars Blomberg, Charlie Neder, Remy Sigrist, and N. J. A. Sloane, <a href="http://arxiv.org/abs/1902.01444">"Choix de Bruxelles": A New Operation on Positive Integers</a>, arXiv:1902.01444 [math.NT], Feb 2019; Fib. Quart. 57:3 (2019), 195-200.

%H Brady Haran and N. J. A. Sloane, <a href="https://www.youtube.com/watch?v=AeqK96UX3rA">The Brussels Choice</a>, Numberphile video (2020)

%H Rémy Sigrist, <a href="/A323286/a323286.gp.txt">PARI program for A323286</a>

%H N. J. A. Sloane, Coordination Sequences, Planing Numbers, and Other Recent Sequences (II), Experimental Mathematics Seminar, Rutgers University, Jan 31 2019, <a href="https://vimeo.com/314786942">Part I</a>, <a href="https://vimeo.com/314790822">Part 2</a>, <a href="https://oeis.org/A320487/a320487.pdf">Slides.</a> (Mentions this sequence)

%e The triangle begins:

%e 2;

%e 1, 4;

%e 6;

%e 2, 8;

%e 10;

%e 3, 12;

%e 14;

%e 4, 16;

%e 18;

%e 5, 20;

%e 12, 21, 22;

%e 6, 11, 14, 22, 24;

%e 16, 23, 26;

%e 7, 12, 18, 24, 28;

%e 25, 30, 110;

%e 8, 13, 26, 32, 112;

%e 27, 34, 114;

%e 9, 14, 28, 36, 116;

%e 29, 38, 118;

%e 10, 40;

%e 11, 22, 41, 42;

%e 11, 12, 21, 24, 42, 44;

%e ...

%o (PARI) See Sigrist link.

%o (Python)

%o def cdb(n):

%o s, out = str(n), set()

%o for l in range(1, len(s)+1):

%o for i in range(len(s)+1-l):

%o if s[i] == '0': continue

%o t = int(s[i:i+l])

%o out.add(int(s[:i] + str(2*t) + s[i+l:]))

%o if t&1 == 0: out.add(int(s[:i] + str(t//2) + s[i+l:]))

%o return sorted(out)

%o print([c for n in range(1, 25) for c in cdb(n)]) # _Michael S. Branicky_, Jul 24 2022

%Y The number of terms in row n is given by A323287.

%Y See A323460 for the (preferred) version 2 where n can also be mapped to itself.

%Y See also A323288 (row maxima), A323289, A323452, A323453, A323454, A323455 (a binary analog).

%Y For variants of the Choix de Bruxelles operation, see A337321 and A337357.

%K nonn,base,look,tabf

%O 1,1

%A _N. J. A. Sloane_, Jan 14 2019

%E Data corrected by _Rémy Sigrist_, Jan 15 2019

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 31 19:56 EDT 2024. Contains 373003 sequences. (Running on oeis4.)