The Story of Two Friends

There are two friends F1 and F2 in a city. They both are student of FCB High School. Also, they reside in the same school hostel. Every afternoon, they get out of the hostel to play in the school play ground. They are so fond of playing that whenever they get the chance to go out they never miss it. They also follow a strange rule. The rules are - * F1 gets a chance to go out after every ath unit of time starting from 0, i.e. at times a, 2a, 3a, 4a… Na * F2 gets a chance to go out after every bth unit of time starting from 0, i.e. at times b, 2b, 3b, 4b… Nb


This is a companion discussion topic for the original entry at https://toph.co/p/the-story-of-two-friends