What would the math equation be for finding the lowest number divisible by 1 to A? I know factorial can make numbers divisible by 1 to A but that dosn't give me the lowest number.
Example of what I'm talking about:
the lowest number divisible by 1,2,3,4,5,6,7,8 = 840
Example of factorial (What I'm not talking about):
8! = 40,320
Note:
A is anything that's more then 1 and is whole.
You can write it as $LCM(1,2,3,4,\dots A)$ To figure it out, you take the highest power of each prime less than $A$ and multiply them. For $A=37$, we have $2^5,3^3,5^2$ and all other primes less than $37$, so it is $2^5\cdot 3^3\cdot 5^2\cdot 7 \cdot 11 \dots \cdot 37$ They are given in OEIS A003418