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.
%I A323288 #35 Jan 09 2025 13:02:10 %S A323288 2,4,6,8,10,12,14,16,18,20,22,24,26,28,110,112,114,116,118,40,42,44, %T A323288 46,48,210,212,214,216,218,60,62,64,66,68,310,312,314,316,318,80,82, %U A323288 84,86,88,410,412,414,416,418,100,102,104,106,108,510,512,514,516,518 %N A323288 Largest number that can be obtained from the "Choix de Bruxelles", version 2 (A323460) operation applied to n. %C A323288 Equally, this is the largest number that can be obtained from the "Choix de Bruxelles", version 1 (A323286) operation applied to n. %C A323288 Maximal element in row n of irregular triangle in A323460 (or, equally, A323286). %C A323288 Conjecture: If n contains no digit >= 5, then a(n) = 2*n; otherwise, a(n) is obtained from n by doubling the substring from the last digit >= 5 to the last digit. - _Charlie Neder_, Jan 19 2019. (This is true. - _N. J. A. Sloane_, Jan 22 2019) %C A323288 Corollary: a(n)/n < 10 for all n, and a(n) = 10 - 1/k + O(1/k^2) for n = 10*k+5. - _N. J. A. Sloane_, Jan 23 2019 %C A323288 The high-water marks for a(n)/n occur at n = 1,15,25,35,45,..., cf. A017329. - _N. J. A. Sloane_, Jan 23 2019 %H A323288 Rémy Sigrist, <a href="/A323288/b323288.txt">Table of n, a(n) for n = 1..10000</a> %H A323288 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 A323288 Eric Angelini, Lars Blomberg, Charlie Neder, Remy Sigrist, and N. J. A. Sloane,, <a href="/A307635/a307635.pdf">"Choix de Bruxelles": A New Operation on Positive Integers</a>, Local copy. %F A323288 a(n) >= 2*n. - _Rémy Sigrist_, Jan 15 2019 %o A323288 (PARI) a(n, base=10) = { my (d=digits(n, base), v=2*n); for (w=1, #d, for (l=0, #d-w, if (d[l+1], my (h=d[1..l], m=fromdigits(d[l+1..l+w], base), t=d[l+w+1..#d]); v = max(v, fromdigits(concat([h,digits(m*2,base),t]), base))))); v } \\ _Rémy Sigrist_, Jan 15 2019 %o A323288 (Python) %o A323288 def a(n): %o A323288 s, out = str(n), {n} %o A323288 for l in range(1, len(s)+1): %o A323288 for i in range(len(s)+1-l): %o A323288 if s[i] == '0': continue %o A323288 t = int(s[i:i+l]) %o A323288 out.add(int(s[:i] + str(2*t) + s[i+l:])) %o A323288 if t&1 == 0: out.add(int(s[:i] + str(t//2) + s[i+l:])) %o A323288 return max(out) %o A323288 print([a(n) for n in range(1, 60)]) # _Michael S. Branicky_, Jul 24 2022 %Y A323288 Cf. A323286, A323460, A017329. %K A323288 nonn,base %O A323288 1,1 %A A323288 _N. J. A. Sloane_, Jan 15 2019 %E A323288 More terms from _Rémy Sigrist_, Jan 15 2019