numlib::invphi -- the inverse of
the Euler phi function
Introductionnumlib::invphi(n) computes all positive
integers i with numlib::phi(i) = n.
Call(s)numlib::invphi(n)
Parametersn |
- | a positive integer |
Returnsa list of positive integer numbers.
Related
Functions
Example
1We compute all numbers i with
numlib::phi(i) = 500:
>> s := numlib::invphi(500)
[625, 753, 1004, 1250, 1506]
Test for correctness:
>> map(s, numlib::phi)
[500, 500, 500, 500, 500]