OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
The largest prime dividing 14 is 7. The smallest prime dividing 14 is 2. 7-2=5 divides 14+1=15. So 14 is in the sequence.
MAPLE
filter:= proc(n) local P;
P:= numtheory:-factorset(n);
if nops(P) = 1 then return false fi;
n+1 mod (max(P)-min(P)) = 0
end proc:
select(filter, [$2..1000]); # Robert Israel, Nov 04 2020
MATHEMATICA
Select[Range[2, 429], If[Or[PrimeQ[#], PrimePowerQ[#]], False, Mod[#1, Last[#2] - First[#2]] == 0 & @@ {# + 1, FactorInteger[#][[All, 1]]}] &] (* Michael De Vlieger, Nov 04 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Sep 05 2008
EXTENSIONS
Extended by Ray Chandler, Nov 07 2008
STATUS
approved