OFFSET
0,2
COMMENTS
This is a permutation of the nonnegative integers in base 8 - see the Comments in A228407 for the proof.
MATHEMATICA
a[0] = 0; a[n_] := a[n] = Block[{k = 1, idm = IntegerDigits[ a[n - 1], 8], t = a@# & /@ Range[n - 1]}, Label[ start]; While[ MemberQ[t, k], k++]; While[ Select[ Permutations[ Join[ idm, IntegerDigits[k, 8]]], #[[1]] != 0 && # == Reverse@# &] == {}, k++; Goto[ start]]; k]; s = Array[a, 60, 0]; FromDigits@# & /@ IntegerDigits[s, 8]
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
N. J. A. Sloane and Robert G. Wilson v, Nov 15 2013
STATUS
approved