There are several questions here on MSE about the periodicity of the sum of two continuous, periodic functions. Here's what I know so far:
It's obvious that if the ratio of the periods is rational, the sum of the functions will be periodic with a period equal to the LCM of the individual periods.
It's relatively easy to give a counterexample to show that the sum of two continuous periodic functions is not always periodic, for instance by considering $\sin(x) + \sin(\pi x)$.
My hunch is that in fact, the sum of two continuous periodic functions is periodic if and only if the ratio of their periods is rational. First of all, is this true?
Secondly, if it's true, the sufficient part is obvious, but is there a simple proof to show the necessary part?
By a "simple" proof I mean one that is accessible to someone with no extensive formal knowledge of analysis or algebra. This is the closest proof I could find, but I can't quite follow it.