login
Lexicographically earliest sequence of distinct positive integers such that the concatenation of the terms equals the concatenation of the positive integers, and no term appears in its natural position.
5

%I #18 Apr 25 2016 12:00:15

%S 12,34,56,78,910,1,11,2,131,4,151,6,171,8,1920,212,22,3,242,5,262,7,

%T 282,9,303,13,23,33,43,53,63,73,83,940,414,24,344,454,64,74,84,950,

%U 515,25,35,45,55,65,75,85,960,616,26,36,46,566,676,86,970,717,27

%N Lexicographically earliest sequence of distinct positive integers such that the concatenation of the terms equals the concatenation of the positive integers, and no term appears in its natural position.

%C Leading zeros are forbidden.

%C For any n>0, the concatenation of the (n-1) first terms never equals the concatenation of the (a(n)-1) first positive integers.

%H Paul Tek, <a href="/A228595/b228595.txt">Table of n, a(n) for n = 1..10000</a>

%H Paul Tek, <a href="/A228595/a228595.txt">PERL program for this sequence</a>

%e The positive integers:

%e +-+-+-+-+-+-+-+-+-+---+---+---+---+---+---+---+---+---+

%e |1|2|3|4|5|6|7|8|9|1 0|1 1|1 2|1 3|1 4|1 5|1 6|1 7|1 8| ...

%e +-+-+-+-+-+-+-+-+-+---+---+---+---+---+---+---+---+---+

%e This sequence:

%e +---+---+---+---+-----+-+---+-+-----+-+-----+-+-----+-+

%e |1 2|3 4|5 6|7 8|9 1 0|1|1 1|2|1 3 1|4|1 5 1|6|1 7 1|8| ...

%e +---+---+---+---+-----+-+---+-+-----+-+-----+-+-----+-+

%o (Perl) See Link section.

%Y Cf. A033307, A064809, A098067, A197124.

%K nonn,base

%O 1,1

%A _Paul Tek_, Aug 27 2013