numlib::invphi
-- the inverse of
the Euler phi functionnumlib::invphi(
n)
computes all positive
integers i
with numlib::phi(i) = n.
numlib::invphi(n)
n |
- | a positive integer |
a list of positive integer numbers.
We 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]