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!)
A370919 Positive integers whose ternary representation includes at least one 1, and every 1 is followed by 2. 5
5, 15, 17, 23, 45, 47, 50, 51, 53, 59, 69, 71, 77, 135, 137, 140, 141, 143, 150, 152, 153, 155, 158, 159, 161, 167, 177, 179, 185, 207, 209, 212, 213, 215, 221, 231, 233, 239, 405, 407, 410, 411, 413, 420, 422, 423, 425, 428, 429, 431, 450, 452, 455, 456 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
The ternary representations of 5, 15, and 17 are 12, 120, and 122.
MATHEMATICA
Map[#[[1]] &, Select[Map[{#, #[[1]] > 0 && #[[1]] == #[[2]] &[{Length[
StringCases[#, "1"]], Length[StringCases[#, "12"]]}] &[
IntegerString[#, 3]]} &, Range[500]], #[[2]] &]] (* Peter J. C. Moses, Mar 05 2024 *)
CROSSREFS
Sequence in context: A166503 A231720 A134453 * A174598 A022417 A102180
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Mar 16 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 September 1 03:33 EDT 2024. Contains 375575 sequences. (Running on oeis4.)