OFFSET
1,2
COMMENTS
First 9 terms are digit reversals of A089369.
EXAMPLE
a(6)= 135642 the steps are 6 -> 56 -> 564 -> 3564 -> 35642 -> 135642.
MATHEMATICA
f[n_] := Block[{j = 1, k = n - 1, d = IntegerDigits[n]}, While[k > 0, If[ OddQ[j], d = Join[ IntegerDigits[k], d], d = Join[d, IntegerDigits[k]]]; j++; k-- ]; FromDigits[d]]; Table[ f[n], {n, 17}]
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Nov 08 2003
EXTENSIONS
More terms from Robert G. Wilson v, Nov 08 2003
STATUS
approved