Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find the common multiples of two or more integers
ResourceFunction["CommonMultiples"][n,m] gives the first m multiples of an number n. | |
ResourceFunction["CommonMultiples"][{n1,n2,…},m] gives the first m common multiples of the numbers ni. | |
ResourceFunction["CommonMultiples"][input] gives the first 10 multiples. | |
ResourceFunction["CommonMultiples"][…,"Grid"] displays the multiples in a grid format. |
Compute the first ten multiples of an integer:
In[1]:= |
Out[1]= |
Compute the first 10 common multiples of a list of integers:
In[2]:= |
Out[2]= |
Compute only four common multiples:
In[3]:= |
Out[3]= |
Make a grid of common multiples:
In[4]:= |
Out[4]= |
CommonMultiples can accept fractions:
In[5]:= |
Out[5]= |
CommonMultiples can accept complex numbers:
In[6]:= |
Out[6]= |
The numbers in the first argument of CommonMultiples must be exact, not approximate, numbers:
In[7]:= |
Out[7]= |
CommonMultiples additionally requires its inputs to be rational:
In[8]:= |
Out[8]= |
In[9]:= |
Out[9]= |
This work is licensed under a Creative Commons Attribution 4.0 International License