OFFSET
1,2
COMMENTS
Numbers including only the digits 1,2,3,4.
LINKS
John Tyler Rascoe, Table of n, a(n) for n = 1..10000
FORMULA
a(10^n) = 1.
EXAMPLE
MATHEMATICA
a[n_] := FromDigits[DivisorSigma[0, DeleteCases[IntegerDigits[n], 0]]]; Array[a, 100] (* Amiram Eldar, Jan 23 2025 *)
PROG
(Python)
def A380375(n):
d, y = [1, 2, 2, 3, 2, 4, 2, 4, 3], ""
for i in str(n).replace("0", ""):
y += str(d[int(i)-1])
return int(y) # John Tyler Rascoe, Feb 27 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Ctibor O. Zizka, Jan 23 2025
STATUS
approved