Definition

general formula

when calulating by hand

If

is the prime factorization of , then

So the rule is:

  • Factor into primes
  • For each prime :
    • keep
    • replace one by
  • Multiply everything together

Example