OFFSET
1,1
COMMENTS
If 24*k+1 = 25*p for some prime p, then k will be in this sequence, implying that this sequence is infinite. - Dean Hickerson, Jan 19 2006
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
q[n_] := Module[{f = FactorInteger[n], f1, f2}, f1 = Select[f, MemberQ[{1, 5, 7, 11}, Mod[First[#], 24]] &]; f2 = Select[f, MemberQ[{13, 17, 19, 23}, Mod[First[#], 24]] &]; AllTrue[f2[[;; , 2]], EvenQ] && Count[f1[[;; , 2]], _?OddQ] == 1]; Select[Range[1600], CompositeQ[24 * # + 1] && q[24 * # + 1] &] (* Amiram Eldar, Aug 24 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Christian G. Bower, Jan 06 2006
STATUS
approved