login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,16
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 02:22 EDT 2024. Contains 371767 sequences. (Running on oeis4.)