OFFSET
1,1
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
MATHEMATICA
spQ[n_]:=Module[{fi=FactorInteger[n][[All, 1]]}, PrimeOmega[n]==2&&Mod[ fi[[2]], fi[[1]]]==9]; Select[Range[8000], spQ]//Quiet (* Harvey P. Dale, Aug 02 2019 *)
PROG
(Python)
from sympy import factorint
def is_A064907(n):
f = factorint(n)
return (sum([f[i] for i in f]) == 2) and (max(f) % min(f) == 9)
def list_A064907(cnt):
inx = 0
n = 1
an = []
while inx < cnt:
if is_A064907(n):
an.append(n)
inx += 1
n += 2
return an #John Cerkan, Apr 14 2018
(PARI) isok(n) = my(f = factor(n)); (#f~ == 2) && (vecmax(f[, 2]) < 2) && ((f[2, 1] % f[1, 1]) == 9); \\ Michel Marcus, Apr 16 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Patrick De Geest, Oct 13 2001
EXTENSIONS
Offset changed by John Cerkan, Apr 12 2018
STATUS
approved