login
A050084
a(n) = floor(a(n-1)/3) if this is not among 0, a(1), ..., a(n-2); otherwise a(n) = 5*a(n-1).
6
1, 5, 25, 8, 2, 10, 3, 15, 75, 375, 125, 41, 13, 4, 20, 6, 30, 150, 50, 16, 80, 26, 130, 43, 14, 70, 23, 7, 35, 11, 55, 18, 90, 450, 2250, 750, 250, 83, 27, 9, 45, 225, 1125, 5625, 1875, 625, 208, 69, 345, 115, 38, 12, 60, 300, 100, 33
OFFSET
1,2
LINKS
MATHEMATICA
Rest@Nest[Append[#, If[FreeQ[#, r = Quotient[#[[-1]], 3]], r, 5 #[[-1]]]] &, {0, 1}, 55] (* Ivan Neretin, Jul 31 2016 *)
CROSSREFS
Cf. A050000 and references therein.
Sequence in context: A123748 A050108 A070386 * A070379 A143254 A070385
KEYWORD
nonn
STATUS
approved