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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A050112 a(n) = floor(a(n-1)/4) if this is positive and not yet in the sequence, otherwise a(n) = 6*a(n-1). 2
1, 6, 36, 9, 2, 12, 3, 18, 4, 24, 144, 864, 216, 54, 13, 78, 19, 114, 28, 7, 42, 10, 60, 15, 90, 22, 5, 30, 180, 45, 11, 66, 16, 96, 576, 3456, 20736, 5184, 1296, 324, 81, 20, 120, 720, 4320, 1080, 270, 67, 402, 100, 25, 150, 37, 222, 55 (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]], 4]], r, 6 #[[-1]]]] &, {0, 1}, 54] (* 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]\4; 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: A128298 A059059 A304255 * A250202 A036125 A001311

Adjacent sequences:  A050109 A050110 A050111 * A050113 A050114 A050115

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 August 7 04:39 EDT 2020. Contains 336274 sequences. (Running on oeis4.)