login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A050080
a(n) = floor(a(n-1)/3) if this is not among 0, a(1), ..., a(n-2); otherwise a(n) = 4*a(n-1).
6
1, 4, 16, 5, 20, 6, 2, 8, 32, 10, 3, 12, 48, 192, 64, 21, 7, 28, 9, 36, 144, 576, 2304, 768, 256, 85, 340, 113, 37, 148, 49, 196, 65, 260, 86, 344, 114, 38, 152, 50, 200, 66, 22, 88, 29, 116, 464, 154, 51, 17, 68, 272, 90, 30, 120, 40, 13
OFFSET
1,2
LINKS
MATHEMATICA
Rest@Nest[Append[#, If[FreeQ[#, r = Quotient[#[[-1]], 3]], r, 4 #[[-1]]]] &, {0, 1}, 56] (* Ivan Neretin, Jul 31 2016 *)
CROSSREFS
Cf. A050000 and references therein.
Sequence in context: A010295 A059152 A059156 * A329068 A328755 A187532
KEYWORD
nonn
STATUS
approved