Factorizes the coprime into digit radices (mixed radix) i.e.
Factorizes the coprime into digit radices (mixed radix) i.e. n = 8 -> Seq(4, 2) Note: there's no padding!
Gets associated base prime for n (assuming n isn't divisible by other primes) WARNING: Assumes supportedRads contains the base prime!
Break n into coprimes i.e.
Break n into coprimes i.e. n = 45 * 21 * 37 would result in Seq(45 * 21, 37) If supportedRads contains more coprime groups than the ones used, 1 will be associated with the unused groups.
Factor n into powers of supported radices (flattened) i.e.
Factor n into powers of supported radices (flattened)
i.e. if supportedRads = Seq(Seq(4, 2), Seq(3)),
output = Seq(5, 1, 7)
implies n = 45 * 21 * 3^7
If supportedRads contains more radices than the ones used, a power of 0 will be
associated with the unused radices.