algebra

combinations of multiplication of numbers

combinations of multiplication of numbers Question: Given a positive integer, n, return the number of possible ways such that k positive integers multiply to n. Order matters. Example n = 24 k = 2 (1, 24), (2, 12), (3, 8), (4, 6), (6, 4), (8, 3), (12, 2), (24, 1) -> 8 n = 100 …

Total answers: 2

Python: finding all generators for a cyclic group

Python: finding all generators for a cyclic group Question: Take a cyclic group Z_n with the order n. The elements are: Z_n = {1,2,…,n-1} For each of the elements, let us call them a, you test if a^x % n gives us all numbers in Z_n; x is here all numbers from 1 to n-1. …

Total answers: 2

What is the difference between SymPy and Sage?

What is the difference between SymPy and Sage? Question: What is the difference between SymPy and Sage a.k.a. SageMath? Asked By: Faouzi FJTech || Source Answers: (Full disclosure: I am the lead developer of SymPy) The first thing you should understand is that SymPy and Sage are not quite the same thing. SymPy is a …

Total answers: 1