I choose $n$ different $k$-digit numbers randomly. I was wondering, roughly, what one can expect their LCM (least common multiple) to be? Preferably in Big O (or Big $\Theta$) notation. I'm particular interested in the dependence on $k$ and $n$. Feel free to assume $n \ll e^{O(k)}$, or any other reasonable assumptions.
As related examples, $LCM(1,\ldots,n) \in O(e^n)$, and a randomly chosen $k$-digit number has a probability $O\left(\frac{1}{k}\right)$ of being prime.
For bonus points, I'd also love an answer for the same question, but for the GCD (greatest common divisor), instead of the LCM.
I think I've got it for the LCM! Basically, the LCM of $n$ random $k$-digit numbers will have around $n\cdot k$ digits.
Here's a rough proof. We have
$$\mathbb{E}(\ln(LCM_{n,k})) \approx \sum_{p\in primes}^{e^k}\sum_{i=1}^{k/\ln(p)}\ln(p)\left(1-\left(1-\frac{1}{p^i}\right)^n\right)$$ To explain some of the parts of this:
Anyways, from there we make some manipulations and approximations
$$\mathbb{E}(\ln(LCM_{n,k})) \approx \sum_{p\in primes}^{e^k}\ln(p)\sum_{i=1}^{k/\ln(p)}\left(1-\left(1-\frac{1}{p^i}\right)^n\right)$$ $$\approx \sum_{p\in primes}^{e^k}\ln(p)\sum_{i=1}^{k/\ln(p)}\left(1-\left(1-\frac{n}{p^i}\right)\right)$$ $$\approx n\sum_{p\in primes}^{e^k}\ln(p)\sum_{i=1}^{k/\ln(p)}\frac{1}{p^i}$$ $$\approx n\sum_{p\in primes}^{e^k}\ln(p) \frac{\frac{1}{p}-\frac{1}{p^{k/\ln(p)+1}}}{1-\frac{1}{p}}$$ $$\approx n\sum_{p\in primes}^{e^k}\frac{\ln(p)}{p}$$ $$\approx O(n \cdot k)$$
Overall, a very, VERY elegant result ^_^. For the record, I took advantage of $p$ being very large for the most part, and $n$ being relatively small.
So ultimately, we get that the LCM will be roughly on the order of $e^{n\cdot k}$ (in the geometric average sense). Given that each of the numbers is already on the order of $e^k$, what this says is that, each time you add another number, the LCM goes up by $k$ digits, and the $LCM$ of $n$ numbers will have $n$ times as many digits.
Let me know if I'm wrong, or made any mistakes.
FWIW, I did a simple experiment, and the LCM of 3 random 100-digit numbers was indeed right around 300-digits, so I think I'm right ^_^.