login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A274003
Primitive terms (not equal twice a smaller term) of A178751: moduli n such that x^y == -1 (mod n) only for x = -1 (mod n).
1
2, 3, 15, 20, 51, 68, 255, 340, 771, 1028, 3855, 5140, 13107, 17476, 65535, 87380, 196611, 262148, 983055
OFFSET
1,1
COMMENTS
See A178751 for further information. In particular, A038192 is the subsequence of odd terms.
PROG
(PARI) is_A274003(n)={is_A178751(n) && (bittest(n, 0) || !is_A178751(n\2))}
(PARI) select( n -> bittest(n, 0) || !setsearch(A178751, n\2), A178751) \\ assuming the vector A178751 holds enough terms of that sequence.
CROSSREFS
Sequence in context: A173334 A331089 A294131 * A101507 A047176 A347668
KEYWORD
nonn,hard,more
AUTHOR
M. F. Hasler, Jun 06 2016
STATUS
approved