In ancient China, generals counted soldiers remaining after a battle by lining them up in rows of different lengths.
If a general had soldiers at the start of a battle and if there were
left over when they lined up at a time;
left over when they lined up at a time;
left over when they lined up at a time;
none left over when they lined at a time,
how many soldiers survived the battle?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Answer- 1 0 2 3
Output- 1023