OFFSET
1,1
EXAMPLE
704 is an item as its prime factorization is 2^6+11^1, sum(pi)=2+11=13, sum(e1)=6+1=7, sum(pi)^2+sum(e1)=13^2+7=169+7=176, finally 704=c*176 for c=4.
MATHEMATICA
fun[n_] := Module[{f = FactorInteger[n]}, Total@f[[;; , 1]]^2 + Total@f[[;; , 2]]]; aQ[n_] := Divisible[n, fun[n]]; Select[Range[100000], aQ] (* Amiram Eldar, Nov 18 2018 *)
PROG
(Python)
from sympy.ntheory import factorint, isprime
n=100000
r=""
def calc(n):
global r
a=factorint(n)
lp=[]
for p in a.keys():
lp.append(p)
lexp=[]
for exp in a.values():
lexp.append(exp)
if n%((sum(lp))**2+sum(lexp))==0:
r += ", "
r += str(n)
return
for i in range(4, n):
calc(i)
print(r[1:])
(PARI) ok(k)={my(f=factor(k)); k > 1 && k % (vecsum(f[, 2]) + vecsum(f[, 1])^2) == 0} \\ Andrew Howroyd, Nov 19 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierandrea Formusa, Nov 18 2018
STATUS
approved