Highly Wilsonian primes: smallest primes p such that w(p)=n where w(n) denote the number of nonnegative integers k such that k! = +1 or -1 (mod n).

A071710

Highly Wilsonian primes: smallest primes p such that w(p)=n where w(n) denote the number of nonnegative integers k such that k! = +1 or -1 (mod n).

Terms

    a(0) =2a(1) =3a(2) =5a(3) =7a(4) =17a(5) =67a(6) =137a(7) =23a(8) =61a(9) =71a(10) =401a(11) =1907a(12) =661a(13) =12227a(14) =29873a(15) =96731a(16) =99721a(17) =154243a(18) =480209a(19) =3408707a(20) =1738901a(21) =27341387

External references