OFFSET
1,5
COMMENTS
A number r could be a remainder of division p/n (for n > 0 and safe prime p > 2*n+1) if it satisfies two conditions:
1) r is coprime to n,
2) (r-1)/2 is coprime to n (assuming r-1 is even) or (n+r-1)/2 is coprime to n (assuming n+r-1 is even).
If one of these conditions isn't satisfied then either p or (p-1)/2 isn't a prime number.
If n1 and n2 are coprime then a(n1*n2) = a(n1)*a(n2), per the Chinese remainder theorem.
LINKS
Krzysztof Ostrowski, Table of n, a(n) for n = 1..10000
EXAMPLE
a(60) = 3 as there are only three distinct remainders possible (23, 47 and 59) when dividing some safe prime p by 60. It's true for all safe primes except 5, 7 and 11.
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Krzysztof Ostrowski, Apr 24 2011
STATUS
approved