OFFSET
1,1
COMMENTS
Numbers missing from A325112.
Equivalently, numbers whose decimal expansion has a subsequence which is divisible by 3.
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
PROG
(Python)
from itertools import combinations
def A376045(n):
def f(x):
c, l = 0, len(str(x))
for i in range(l):
k = 10**i
for j in (1, 2, 4, 5, 7, 8):
if j*k<=x:
c += 1
for a in combinations((10**i for i in range(l)), 2):
for b in ((1, 1), (1, 4), (1, 7), (2, 2), (2, 5), (2, 8), (4, 1), (4, 4), (4, 7), (5, 2), (5, 5), (5, 8), (7, 1), (7, 4), (7, 7), (8, 2), (8, 5), (8, 8)):
if a[0]*b[0]+a[1]*b[1] <= x:
c += 1
return n+c
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m # Chai Wah Wu, Sep 10 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Sep 09 2024
STATUS
approved