OFFSET
1,1
MATHEMATICA
Select[Range[10^7], Count[IntegerDigits[#], 0]==2&&Max[IntegerDigits[#]]==1&] (* James C. McMahon, Dec 20 2024 *)
PROG
(Python)
from math import isqrt, comb
from sympy import integer_nthroot
def A379268(n):
a = (m:=integer_nthroot(6*n, 3)[0])+(n>comb(m+2, 3))+2
b = isqrt((j:=comb(a, 3)-n+1)<<3)+1>>1
c = j-comb((r:=isqrt(w:=j<<1))+(w>r*(r+1)), 2)-1
return (10**a-1)//9-10**b-10**c
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Chai Wah Wu, Dec 19 2024
STATUS
approved