The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A371057 Ternary numbers consisting of a run of 2's, then a run of 0's, then a run of 1's. 1
201, 2001, 2011, 2201, 20001, 20011, 20111, 22001, 22011, 22201, 200001, 200011, 200111, 201111, 220001, 220011, 220111, 222001, 222011, 222201, 2000001, 2000011, 2000111, 2001111, 2011111, 2200001, 2200011, 2200111, 2201111, 2220001, 2220011, 2220111 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
22011 consists of the run 22, then the run 0 then the run 11.
LINKS
MATHEMATICA
Map[#[[1]] &, Select[Map[{#, Map[#[[1]] &, Split[IntegerDigits[#, 3]]] == {2, 0, 1}} &, Range[1, 36000, 3]], #[[2]] &]] (* A371056 *)
ToExpression[Map[IntegerString[#, 3] &, %]] (* this sequence *)
(* Peter J. C. Moses, Mar 06 2024 *)
PROG
(Python)
from itertools import count, islice
def A371057_gen(): # generator of terms
return (10**(l-a)*((10**a-1)//9<<1)+((10**b-1)//9) for l in count(3) for a in range(1, l-1) for b in range(1, l-a))
A371057_list = list(islice(A371057_gen(), 20)) # Chai Wah Wu, Mar 30 2024
CROSSREFS
Sequence in context: A226566 A061697 A371109 * A305724 A167070 A175188
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Mar 22 2024
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 29 18:36 EDT 2024. Contains 372952 sequences. (Running on oeis4.)