OFFSET
1,1
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = 5 because 5 is the least number such that sopfr(5) = sopfr(5 + 1) = 5 .
a(2) = 10 because 10 is the least number such that sopfr(10) = sopfr(10 + 2) = 7 .
MAPLE
with(numtheory):P:=proc(q) local a, b, k, n; for n from 1 to q do for k from 1 to q do
a:=ifactors(k)[2]; b:=ifactors(k+n)[2];
if add(a[k][1]*a[k][2], k=1..nops(a))=add(b[k][1]*b[k][2], k=1..nops(b))
then print(k); break; fi; od; od; end: P(10^9);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Jan 11 2017
STATUS
approved