OFFSET
1,1
EXAMPLE
The ternary representations of 10, 19, and 31 are 101, 201, and 1011.
MATHEMATICA
Map[#[[1]] &, Select[Map[{#, #[[1]] > 0 && #[[1]] == #[[2]] &[{Length[
StringCases[#, "0"]], Length[StringCases[#, "01"]]}] &[
IntegerString[#, 3]]} &, Range[500]], #[[2]] &]]
(* Peter J. C. Moses, Mar 05 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Mar 13 2024
STATUS
approved