login
This site is supported by donations to The OEIS Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A050012 a(n) = floor(a(n-1)/2) if this is positive and not yet in the sequence, otherwise a(n) = 7*a(n-1). 6
1, 7, 3, 21, 10, 5, 2, 14, 98, 49, 24, 12, 6, 42, 294, 147, 73, 36, 18, 9, 4, 28, 196, 1372, 686, 343, 171, 85, 595, 297, 148, 74, 37, 259, 129, 64, 32, 16, 8, 56, 392, 2744, 19208, 9604, 4802, 2401, 1200, 600, 300, 150, 75, 525, 262 (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]], 2]], r, 7 #[[-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]\2; if(t<2, v[i]=7*v[i-1]; next); for(j=1, i-1, if(v[j]==t, v[i]=7*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: A161417 A070409 A166481 * A271573 A098231 A104716

Adjacent sequences:  A050009 A050010 A050011 * A050013 A050014 A050015

KEYWORD

nonn,easy

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 9 16:42 EST 2019. Contains 329879 sequences. (Running on oeis4.)