login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

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 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A050088 a(n) = floor(a(n-1)/3) if this is positive and not yet in the sequence, otherwise a(n) = 6*a(n-1). 5
1, 6, 2, 12, 4, 24, 8, 48, 16, 5, 30, 10, 3, 18, 108, 36, 216, 72, 432, 144, 864, 288, 96, 32, 192, 64, 21, 7, 42, 14, 84, 28, 9, 54, 324, 1944, 648, 3888, 1296, 7776, 2592, 15552, 5184, 1728, 576, 3456, 1152, 384, 128, 768, 256, 85, 510 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Ivan Neretin, Table of n, a(n) for n = 1..10000

MATHEMATICA

Rest@Nest[Append[#, If[FreeQ[#, r = Quotient[#[[-1]], 3]], r, 6 #[[-1]]]] &, {0, 1}, 52] (* Ivan Neretin, Jul 31 2016 *)

PROG

(PARI) first(n)=my(v=vector(n), t); v[1]=1; for(i=2, n, t=v[i-1]\3; if(t<2, v[i]=6*v[i-1]; next); for(j=1, i-1, if(v[j]==t, v[i]=6*v[i-1]; next(2))); v[i]=t); v \\ Charles R Greathouse IV, Jul 31 2016

CROSSREFS

Cf. A050000 and references therein.

Sequence in context: A070394 A065174 A065284 * A163864 A015808 A112591

Adjacent sequences:  A050085 A050086 A050087 * A050089 A050090 A050091

KEYWORD

nonn

AUTHOR

Clark Kimberling

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 8 06:53 EST 2021. Contains 349590 sequences. (Running on oeis4.)