![]() Volume 10, Issue 1 Articles Trott's Corner New Products New Publications Calendar News Bulletins New Resources Classifieds Download This Issue Editorial Policy Staff and Contributors Submissions Subscriptions Advertising Back Issues Contact Information |
Ordered and Unordered Factorizations of Integers
Factorizations with Relatively Prime PartsIn this final section we investigate an interesting class of restricted factorizations, namely the class of factorizations in which the factors must be relatively prime to each other. Clearly this is a stronger restriction than requiring distinct factors. The asymptotic growth of such factorizations has been studied by Warlimont [5]. We note that in the special case of squarefree integers, all factorizations are necessarily relatively prime and distinct. Thus, for squarefree integers the values of the three functions that count unrestricted or distinct or relatively prime factorizations, all coincide for the ordered and unordered cases respectively. We will discuss and compare several different approaches to generate the corresponding lists of factorizations. Ordered Factorizations with Relatively Prime PartsIn the ordered case, factorizations of
Here is another expression for the number of ordered set partitions (sometimes called ordered Bell numbers) due to Carlitz [10].
In addition there is also this pretty expression as an infinite sum.
Using either of these it is easy to count the number of ordered relatively prime factorizations.
Unordered Factorizations with Relatively Prime PartsIn the unordered case, factorizations of
Again there is a pretty expression for the number of partitions of a set (or Bell numbers) as an infinite sum. Now it is easy to count the number of unordered relatively prime factorizations.
Generating Lists of Relatively Prime FactorizationsThere are several different approaches that can be used to find the desired lists. Unordered Relatively Prime Factorizations by SelectionTo generate a list of relatively prime factorizations, we need only search among the distinct unordered factorizations and pick out those with relatively prime parts. Method 1. By FactorizationOur first approach to selecting the relatively prime cases is to factor the numbers in each distinct unordered factorization, and after flattening and sorting, see if this matches the factorization of
This shows that
We determine the positions of the cases with admissible factorizations. Then we read off these factorizations from the list.
We put this together into one function.
Method 2. By Greatest Common DivisorsA second approach is to check that the factors are relatively prime directly, by finding the greatest common divisors of every pair of factors. However, Bressoud and Wagon [11] give a much more efficient way to test a long list for relative primality of all pairs.
We rewrite our function accordingly.
Method 3: By Generating Set PartitionsThe idea here is to generate the partitions of a set with
Here is an example using Dickau's function.
Now if, for example,
Putting this together we have a nice oneliner. This approach is unsurprisingly much faster than the previous ones!
Ordered Relatively Prime FactorizationsWhichever of the three approaches is used to generate the unordered cases, we need only permute the elements of each such unordered factorization to produce the lists of the ordered ones.
|
||||||||
About Mathematica | Download Mathematica Player © 2006 Wolfram Media, Inc. All rights reserved. |