[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A370917
Positive integers whose ternary representation includes at least one 0, and every 0 is followed by 2.
5
11, 20, 34, 35, 38, 47, 61, 62, 65, 74, 101, 103, 104, 106, 107, 115, 116, 119, 128, 142, 143, 146, 155, 182, 184, 185, 187, 188, 196, 197, 200, 209, 223, 224, 227, 236, 304, 305, 308, 310, 311, 313, 314, 317, 319, 320, 322, 323, 344, 346, 347, 349, 350, 358
OFFSET
1,1
EXAMPLE
The ternary representations of 11, 20, and 34 are 102, 202, and 1021.
MATHEMATICA
Map[#[[1]] &, Select[Map[{#, #[[1]] > 0 && #[[1]] == #[[2]] &[{Length[
StringCases[#, "0"]], Length[StringCases[#, "02"]]}] &[
IntegerString[#, 3]]} &, Range[500]], #[[2]] &]]
(* Peter J. C. Moses, Mar 05 2024 *)
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Mar 15 2024
STATUS
approved