I found some proofs for the claim that for natural numbers $a,b,c$ it holds that $$ \operatorname{lcm}(\operatorname{lcm}(a,b),c) = \operatorname{lcm}(a,\operatorname{lcm}(b,c)). $$
I wonder whether one could show it this way: Let $\mathbb P$ be the set of prime numbers. Now let $$ a = \prod\limits_{p\in\mathbb P}p^{\alpha_p}, b = \prod\limits_{p\in\mathbb P}p^{\beta_p}, c = \prod\limits_{p\in\mathbb P}p^{\gamma_p} $$ be the unique prime decompositions. It is $$\operatorname{lcm}(a,b) = \prod\limits_{p\in\mathbb P}p^{\max\{\alpha_p, \beta_p\}}. $$
Then it is $$\operatorname{lcm}(\operatorname{lcm}(a,b),c) = \prod\limits_{p\in\mathbb P}p^{\max\{\max\{\alpha_p, \beta_p\},\gamma_p\}}. $$
And here I have the feeling I am missing an intermediate step, since nothing should be argumented with "it is obvious". So, am I maybe missing a valid argumented that these max relations can be nested this way?