({{, (RefLink[PowerModList, paclet:ref/PowerModList])[a,s/r,m] 
gives a list of all x modulo m for which (x^r)≡(a^s) mod m.}})

OpenersNotesSection(Spacer1)Details

Integer mathematical function.

(RefLink[PowerModList, paclet:ref/PowerModList])[a,-1,m] gives the modular inverse {x} for which x a≡1 mod m, or {} if no such x exists.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Find modular square roots of 3 modulo 11:

PowerModList[3,1/2,11]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[PowerMod, paclet:ref/PowerMod])  ▪  (RefLink[Reduce, paclet:ref/Reduce])  ▪  (RefLink[FindInstance, paclet:ref/FindInstance])  ▪  (RefLink[ModularInverse, paclet:ref/ModularInverse])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Cryptographic Number Theory, paclet:guide/CryptographicNumberTheory])}, {▪(RefLinkPlain[Number Theoretic Functions, paclet:guide/NumberTheoreticFunctions])}})}})