OFFSET
1,2
PROG
(PARI) select( {is_A355274(n)=vecsum(n=digits(n, 3)%2)*2<#n+!n}, [0..123])
(Python)
from sympy.ntheory import digits
def ok(n):
d = digits(n, 3)[1:]
return len(d) < 2*sum(1 for di in d if di%2 == 0)
print([k for k in range(117) if ok(k)]) # Michael S. Branicky, Jul 03 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Jul 03 2022
STATUS
approved