login
A186304
A007522(n)-2.
2
5, 21, 29, 45, 69, 77, 101, 125, 149, 165, 189, 197, 221, 237, 261, 269, 309, 357, 365, 381, 429, 437, 461, 477, 485, 501, 597, 605, 629, 645, 717, 725, 741, 749, 821, 837, 861, 885, 909, 917, 965, 981, 989, 1029
OFFSET
1,1
COMMENTS
Extensions to Fermat’s Little Theorem precisely indicate a composite or prime number. See A186293 for an introduction to A186293-A186305.
The sequence shows p-2 where p are the primes == 7 (mod 8).
(k*p+(p-2)) ^ (j*(p-1)+1) == (k*p+((p-1)/2)) ^ (j*(p-1)+(p-2)) == p-2 (mod p).
LINKS
MATHEMATICA
Select[Prime[Range[200]], Mod[#, 8]==7&]-2 (* Harvey P. Dale, Dec 24 2021 *)
CROSSREFS
Sequence in context: A305914 A303036 A305343 * A316235 A317156 A304665
KEYWORD
nonn
AUTHOR
Marco Matosic, Feb 17 2011
STATUS
approved