%I #12 Apr 21 2018 06:21:40
%S 0,1,2,3,4,5,50,51,6,52,7,8,53,9,10,54,11,12,56,13,14,55,16,17,15,25,
%T 18,19,20,57,21,22,58,35,23,24,26,45,27,28,29,30,59,31,32,500,65,33,
%U 34,36,37,75,85,501,38,95,39,40,505,150,502,503,41,151,42,43,152,504,153,506,44,507,46,154,47,48,515,49,60
%N Lexicographically earliest sequence of distinct terms such that the successive quantities of digits between two successive 5s 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. This sequence is a permutation of the numbers >= 0.
%H Jean-Marc Falcoz, <a href="/A303163/b303163.txt">Table of n, a(n) for n = 1..1506</a>
%e There are:
%e 0 digit between the 5 of "5" and the 5 of "50";
%e 1 digit between the 5 of "50" and the 5 of "51";
%e 2 digits between the 5 of "51" and the 5 of "52";
%e 3 digits between the 5 of "52" and the 5 of "53";
%e 4 digits between the 5 of "53" and the 5 of "54";
%e 5 digits between the 5 of "54" and the 5 of "56";
%e 5 digits between the 5 of "56" and the first 5 of "55";
%e 0 digit between the 5s of "5";
%e 5 digits between the last 5 of "55" and the 5 of "15";
%e 1 digit between the 5 of "15" and the 5 of "25";
%e 6 digits between the 5 of "25" and the 5 of "57";
%e 5 digits between the 5 of "57" and the 5 of "58";
%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 5s.
%Y Cf. A303151 for the same idea with 1s as chunk's separators, A303157 with 2s, A303158 with 3s, A302943 with 4s, 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