VOOZH about

URL: https://oeis.org/A321004

⇱ A321004 - OEIS


login
A321004
Number of pairs of primes (i,j) with i<j<n such that i*j == 1 mod n.
2
0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 1, 0, 2, 2, 1, 3, 0, 2, 1, 3, 2, 3, 0, 3, 2, 3, 2, 2, 2, 3, 2, 3, 3, 3, 2, 3, 1, 5, 2, 3, 2, 5, 3, 3, 3, 3, 2, 4, 3, 3, 3, 3, 1, 5, 4, 5, 1, 5, 3, 6, 2, 4, 4, 5, 4, 7, 3, 4, 2, 4, 1, 6, 4
OFFSET
1,16
MAPLE
with(numtheory);
f:=proc(n) local m, i, j, c; global pi;
if n < 4 then return(0); fi;
c:=0; m:=NumberTheory[pi](n); if isprime(n) then m:=m-1; fi;
for i from 1 to m-1 do p:=ithprime(i);
for j from i+1 to m do
if ithprime(j)*p mod n =1 then c:=c+1; fi; od: od: c; end;
[seq(f(n), n=1..120)];
CROSSREFS
Sequence in context: A365618 A254885 A108461 * A258595 A233544 A026535
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 02 2018
STATUS
approved