Jane Street interview question

There is a solar system with three planets orbiting around the sun. One of them has a translation period of 60 years, another one of 84 years and another one of 140 years. Today, the three planets are aligned with the sun. When is the next time the three planets will be aligned with the sun?

Interview Answers

Anonymous

25 Feb 2015

Should be 210 years

14

Anonymous

6 Mar 2016

These planets can be aligned on either the same side of the sun or opposite sides. So the answer is a number x that is the least common multiplier of 30, 42 and 70, which is 210.

1

Anonymous

26 Jul 2016

sorry i was wrong

Anonymous

30 Dec 2016

1/(1/60-1/84)=84*60/24=210, 1/(1/60-1/140)=140*60/80=210/2, so 210 years...

Anonymous

3 Jan 2018

t (in years): next time for the 3 planets align with sun t/60 - t/84 = 0.5*a t/60-t/140 = 0.5*b a and b are positive integers. Minimum t satisfied the equations above will be the answer.

Anonymous

22 Feb 2018

ky's answer is right. Solve the equations you can get t=105k, where k is a positive integer. If you are not convinced, you can check that after 105 years the three planets are indeed aligned with the sun.

Anonymous

26 Jul 2016

AB will meet every 60 years BC will meet every 210 years ABC will meet every 420 years

Anonymous

26 Jul 2016

any multiples of 105/2 years such as 105/2, 105, 105*3/2...

Anonymous

7 Jan 2015

4x3x5x7=420

3

Anonymous

25 Feb 2015

105 works too