OFFSET
1,1
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..200
EXAMPLE
For n=2 the minimum k is 1595. Prime factors of 1595 are 5, 11, and 29. We have 1595 - 2 = 1593, 5 - 2 = 2 and 1593 / 3 = 531, 11 - 2 = 9 and 1593 / 9 = 177, 29 - 2 = 27 and 1593 / 27 = 59.
MAPLE
with(numtheory); P:=proc(i) local c, d, k, n, ok, p; for k from 1 to i do
for n from 2 to i do if not isprime(n) then p:=ifactors(n)[2]; ok:=1;
for d from 1 to nops(p) do if p[d][2]>1 or p[d][1]=k then ok:=0; break; fi;
if not type((n-k)/(p[d][1]-k), integer) then ok:=0; break; fi; od;
if ok=1 then print(n); break; fi; fi; od; od; end: P(10^6);
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo P. Lava, Aug 06 2013
STATUS
approved