OFFSET
1,1
EXAMPLE
Prime factors of 1043959 are 7, 293 and 509. We have that (1043959-4)/(7+4) = 94905, (1043959-4)/(293+4) = 3515 and (1043959-4)/(509+4) = 2035.
MAPLE
with(numtheory); A225714:=proc(i, j) local c, d, n, ok, p, t;
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]=j then ok:=0; break; fi;
if not type((n+j)/(p[d][1]-j), integer) then ok:=0; break; fi; od;
if ok=1 then print(n); fi; fi; od; end: A225714(10^9, -4);
KEYWORD
nonn
AUTHOR
Paolo P. Lava, May 13 2013
EXTENSIONS
a(20)-a(28) from Donovan Johnson, Nov 15 2013
STATUS
approved