OFFSET
1,1
EXAMPLE
MATHEMATICA
q[n_] := Module[{f = FactorInteger[n]}, Divisible[n, Total[10^(PrimePi[f[[;; , 1]]] - 1) * f[[;; , 2]]]]]; q[1] = False; Select[Range[10^5], q] (* Amiram Eldar, Mar 17 2024 *)
PROG
(Python)
from sympy import factorint, primepi
def ok(n): return n > 1 and n%sum(e*10**(primepi(p)-1) for p, e in factorint(n).items()) == 0
print([k for k in range(10**4) if ok(k)]) # Michael S. Branicky, Mar 17 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Mar 17 2024
EXTENSIONS
More terms from Michel Marcus, Mar 17 2024
STATUS
approved