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