Periodic functions/Rational ratio of lengths/Sum periodic/Exercise