R2-D2 and C-3PO are friends. R2-D2 boards a spacecraft bound to a galaxy far, far away, but is always in contact with C-3PO, also, each one replies, as and when a message is received. R2-D2 started a conversation just after travelling a light-year. If there are total n messages in the conversation, what is the distance between the friends, just after R2-D2 said goodbye, in light-years?
FYI:
0 Relativity is eliminated
2 Messages travel at speed of light
4 Speed of spaceship is 1 times that of light
6 X is more than 1; function must return 0, if otherwise...

Solution Stats

65 Solutions

15 Solvers

Last Solution submitted on Nov 22, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers15

Suggested Problems

More from this Author1

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!