OFFSET
1,2
COMMENTS
This permutation of the natural numbers is the "MD sequence" for (M,D) = (2,3). See A050000. - Clark Kimberling, Jun 30 2004
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
Clark Kimberling, Unsolved Problems and Rewards.
MATHEMATICA
Rest@Nest[Append[#, If[FreeQ[#, r = Quotient[#[[-1]], 3]], r, 2 #[[-1]]]] &, {0, 1}, 60] (* Ivan Neretin, Jul 31 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved