Partition of a number into two factors
Given a prime number factorization x
, bestCombination
partitions x
into two groups, such that the product of the numbers
in group one is as similar as possible to the product
of the numbers of group two. This is useful in magic.dim
.
bestCombination(x)
x |
prime number factorization |
a vector c(prod(set1),prod(set2))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.