Previous Up Next

6.34.12  Rebuilding a fraction from its value modulo p: fracmod iratrecon

Given an integer n and a modulus p, the fracmod (or iratrecon, for Maple compatibility) command finds the rational number equal to n modp, where both the numerator and denominator are not greater than √p/2 in absolute value.


Examples.


Previous Up Next