jQuery UI Accordion - Default functionality
For example, let the two bells toll after every 3 secs and 4 secs respectively.
Then the first bell tolls after every 3, 6, 9, 12 seconds...
Like this, the second bell tolls after every 4, 8, 12 seconds...
So, if the two bell toll together now, again they will toll together after 12 seconds. This 12 seconds is nothing but the L.C.M of 3 seconds and 4 seconds
The same thing happened in our problem. To find the time, when they will all toll together, we have to find the L.C.M of (2,4,8,6,10,12).
L.C.M of (2,4,8,6,10,12) is 120 seconds = 2 minutes.
So, after every two minutes, all the bell will toll together.
For example, in 10 minutes, they toll together 10/2 = 5 times
That is, after 2,4,6,8,10 minutes. It does not include the one at the start
Similarly, in 30 minutes, they toll together 30/2 = 15 times.(excluding one at the start)
2. The traffic lights at three different road
crossings change after every 48 sec, 72 sec and 108 sec respectively. If
they all change simultaneously at 8:20:00 hrs, when will they again