%I #13 Apr 21 2018 06:21:18
%S 0,1,2,3,30,31,4,32,5,6,34,7,8,33,9,10,35,36,11,13,12,23,14,37,15,16,
%T 38,17,18,43,19,53,20,21,39,22,24,25,300,26,27,28,301,63,29,73,40,41,
%U 42,44,83,93,302,130,45,46,304,131,47,48,132,303,134,49,313,50,305,306,135,307,51,308
%N Lexicographically earliest sequence of distinct terms such that the successive quantities of digits between two successive 3s are given by the succession of the sequence's digits itself.
%C The sequence starts with a(1) = 0 and is always extended with the smallest integer not yet present that doesn't lead to a contradiction.
%C This sequence is a permutation of the numbers >= 0.
%H Jean-Marc Falcoz, <a href="/A303158/b303158.txt">Table of n, a(n) for n = 1..1503</a>
%e There are:
%e 0 digit between the 3 of "3" and the 3 of "30";
%e 1 digit between the 3 of "30" and the 3 of "31";
%e 2 digits between the 3 of "31" and the 3 of "32";
%e 3 digits between the 3 of "32" and the 3 of "34";
%e 3 digits between the 3 of "34" and the first 3 of "33";
%e 0 digit between the 3s of "33";
%e 3 digits between the last 3 of "33" and the 3 of "35";
%e 1 digit between the 3 of "35" and the 3 of "36";
%e 4 digits between the 3 of "36" and the 3 of "13";
%e 3 digits between the 3 of "13" and the 3 of "23";
%e 2 digits between the 3 of "23" and the 3 of "37";
%e 5 digits between the 3 of "37" and the 3 of "38";
%e 6 digits between the 3 of "38" and the 3 of "43";
%e etc.
%e We see that the first column here is the succession of the digits of the sequence, as well as the size of each chunk of digits between two successive 3s.
%Y Cf. A303151 for the same idea with 1s as chunk's separators, and A303157 with 2s. Cf. A303151 for the same idea with 1s as chunk's separators, A303157 with 2s, A302943 with 4s, A303163 with 5s, A303164 with 6s, A303166 with 7s, A303167 with 8s and A303171 with 9s.
%K nonn,base
%O 1,3
%A _Eric Angelini_ and _Jean-Marc Falcoz_, Apr 19 2018