OFFSET
1,1
COMMENTS
Complementary sequence of A023717.
LINKS
François Marques, Table of n, a(n) for n = 1..10000
EXAMPLE
18 is not in the sequence since it is 102_4 in base 4, but 19 is in the sequence since it is 103_4 in base 4.
MAPLE
seq(`if`(numboccur(3, convert(n, base, 4))>0, n, NULL), n=0..100);
MATHEMATICA
Select[ Range[ 0, 100 ], (Count[ IntegerDigits[ #, 4 ], 3 ]>0)& ]
PROG
(PARI) isok(m) = #select(x->(x==3), digits(m, 4)) >= 1; \\ Michel Marcus, Sep 20 2020
(Python)
from gmpy2 import digits
def A337250(n):
def f(x):
l = (s:=digits(x, 4)).find('3')
if l >= 0: s = s[:l]+'2'*(len(s)-l)
return n+int(s, 3)
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m # Chai Wah Wu, Dec 04 2024
CROSSREFS
Cf. A196032 (at least one 0 in base 4).
Cf. Numbers with at least one digit b-1 in base b : A074940 (b=3), this sequence, A337572 (b=5), A333656 (b=6), A337141 (b=7), A337239 (b=8), A338090 (b=9), A011539 (b=10), A095778 (b=11).
KEYWORD
nonn,base,easy
AUTHOR
François Marques, Sep 19 2020
STATUS
approved