OFFSET
1,2
COMMENTS
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.
Concatenation of any two terms is also a term, except for 0 which can only be concatenated to the right.
LINKS
Lars Blomberg, Table of n, a(n) for n = 1..10000
EXAMPLE
Original 13202 -3202 --202 ---02 ----2 -----
Permuted ----- -1--- -1--3 21--3 21-03 21203
Placing digit 5 outside is not allowed.
Original 15202 -5202 --202
Permuted ----- -1--- -1--3-5
Collision, the 1 cannot replace the 3.
Original 13212 -3212 --212 ---12
Permuted ----- -1--- -1--3 21--3
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Lars Blomberg and Eric Angelini, Dec 14 2019
STATUS
approved