OFFSET
1,2
COMMENTS
All terms except 1 are even. - Robert Israel, Apr 07 2019
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Maria Suzuki, Related to Alternative Formulations of the Twin Prime Problem, American Math. Monthly, 107 (2000) pp. 55-56.
MAPLE
filter:= proc(n)
nops(select(t -> t mod 5 = 1 or t mod 5 = 4, numtheory:-divisors(5*n+1))) = 2
and nops(select(t -> t mod 5 = 4, numtheory:-divisors(5*n-1)))=1
end proc:
select(filter, [$1..1000]); # Robert Israel, Apr 07 2019
MATHEMATICA
filterQ[n_] := Length[Select[Divisors[5 n + 1], Mod[#, 5] == 1 || Mod[#, 5] == 4&]] == 2 && Length[Select[Divisors[5 n - 1], Mod[#, 5] == 4&]] == 1;
Select[Range[1000], filterQ] (* Jean-François Alcover, Aug 16 2020, after Robert Israel *)
CROSSREFS
KEYWORD
nonn
AUTHOR
John W. Layman, Nov 30 2000
STATUS
approved