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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A050100 a(n) = floor(a(n-1)/3) if this is positive and not yet in the sequence, else a(n) = 10*a(n-1). 2
1, 10, 3, 30, 300, 100, 33, 11, 110, 36, 12, 4, 40, 13, 130, 43, 14, 140, 46, 15, 5, 50, 16, 160, 53, 17, 170, 56, 18, 6, 2, 20, 200, 66, 22, 7, 70, 23, 230, 76, 25, 8, 80, 26, 260, 86, 28, 9, 90, 900, 9000, 3000, 1000, 333, 111, 37, 370 (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, 10 #[[-1]]]] &, {0, 1}, 56] (* 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]=10*v[i-1]; next); for(j=1, i-1, if(v[j]==t, v[i]=10*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: A228314 A243239 A079670 * A103219 A260680 A111126

Adjacent sequences:  A050097 A050098 A050099 * A050101 A050102 A050103

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 July 17 03:18 EDT 2019. Contains 325092 sequences. (Running on oeis4.)