OFFSET
1,1
COMMENTS
Derangement here means the n-th element of L is not the n-th element of this sequence, so a(n) != 2n - 1.
EXAMPLE
We must begin with 1,3,5,7... and we cannot have a(1) = 1, so the next possibility is the label "13". The next term must be the smallest available label not leading to a contradiction, thus "5". The next one will be "7", etc. After the label "9" the smallest available label is "1". After this "1" we cannot have a(6) = 11 -- we thus take the smallest available label which is "113". No label is allowed to start with a leading zero.
CROSSREFS
Same type of sequence -- but for even numbers -- is A097481. - Eric Angelini, Aug 12 2008
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Sep 19 2004
EXTENSIONS
Corrected and extended by Jacques ALARDET and Eric Angelini, Aug 12 2008
Derangement wording introduced by Danny Rorabaugh, Nov 26 2015
STATUS
approved