login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Lexicographically earliest sequence of distinct positive terms such that the sum of two consecutive terms is digitally balanced.
2

%I #10 Mar 21 2019 13:31:39

%S 1,8,2,7,3,6,4,5,30,11,24,13,22,15,20,17,18,19,16,21,14,23,12,25,10,

%T 27,29,9,26,109,32,103,36,99,40,95,44,91,48,87,52,83,56,79,60,75,64,

%U 71,68,67,72,63,76,59,80,55,84,51,88,47,92,43,96,39,100,35

%N Lexicographically earliest sequence of distinct positive terms such that the sum of two consecutive terms is digitally balanced.

%C Digitally balanced numbers correspond to A031443.

%H Rémy Sigrist, <a href="/A306994/b306994.txt">Table of n, a(n) for n = 1..10000</a>

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

%e The first terms, alongside the binary representation of a(n) + a(n+1), are:

%e n a(n) bin(a(n)+a(n+1))

%e -- ---- ----------------

%e 1 1 1001

%e 2 8 1010

%e 3 2 1001

%e 4 7 1010

%e 5 3 1001

%e 6 6 1010

%e 7 4 1001

%e 8 5 100011

%e 9 30 101001

%e 10 11 100011

%e 11 24 100101

%e 12 13 100011

%e 13 22 100101

%e 14 15 100011

%e 15 20 100101

%e 16 17 100011

%o (PARI) See Links section.

%Y See A306992 for the multiplicative variant.

%Y Cf. A031443.

%K nonn,look,base

%O 1,2

%A _Rémy Sigrist_, Mar 18 2019