OFFSET
1,1
MATHEMATICA
Map[#[[1]] &, Select[Map[{#, Map[#[[1]] &, Split[IntegerDigits[#, 3]]] == {2, 1, 0}} &,
Range[0, 6000, 3]], #[[2]] &]] (* A371052 *)
ToExpression[Map[IntegerString[#, 3] &, %]] (* this sequence *)
(* Peter J. C. Moses, Mar 06 2024 *)
PROG
(Python)
from itertools import count, islice
def A371053_gen(): # generator of terms
return ((10**b*(10**a-1<<1)+10**b-1)//9*10**(l-a-b) for l in count(3) for a in range(1, l-1) for b in range(1, l-a))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Mar 17 2024
STATUS
approved