login
Numbers whose k digits can be permuted into a new k-digit number according to rules explained in the Comments section.
2

%I #16 Jan 22 2020 12:58:11

%S 0,112,1120,3122,11114,11200,13004,13202,30014,30212,31220,33024,

%T 33222,111140,112000,112112,113142,130040,132020,300140,302120,312114,

%U 312200,313144,330240,332220,500142,502122,511144,512004,512202,530044,530242,532024,532222

%N Numbers whose k digits can be permuted into a new k-digit number according to rules explained in the Comments section.

%C Each digit d of the k-digit word is placed in a new k-digit word at a position which is d steps to the right of its original position when d is odd, or to the left when d is even. Digits may not be placed outside the k-digit word or replace an already placed digit.

%C Concatenation of any two terms is also a term, except for 0 which can only be concatenated to the right.

%H Lars Blomberg, <a href="/A330418/b330418.txt">Table of n, a(n) for n = 1..10000</a>

%e Original 13202 -3202 --202 ---02 ----2 -----

%e Permuted ----- -1--- -1--3 21--3 21-03 21203

%e Placing digit 5 outside is not allowed.

%e Original 15202 -5202 --202

%e Permuted ----- -1--- -1--3-5

%e Collision, the 1 cannot replace the 3.

%e Original 13212 -3212 --212 ---12

%e Permuted ----- -1--- -1--3 21--3

%Y Cf. A330367, A330419.

%K nonn,base

%O 1,2

%A _Lars Blomberg_ and _Eric Angelini_, Dec 14 2019