A group of soldiers was asked to fall in line making rows of three.

1.6k Views Asked by At

A group of soldiers was asked to fall in line making rows of three. It was found that there was one soldier extra. Then they were asked to stand in rows of five. It was found there were left two soldiers. They were asked to stand in rows of seven. Then there were three soldiers who could not be adjusted. At least how many soldiers were there in the group?

Now I know the answer to this is $52$. But how to arrive at it? How to explain it to my students?

Now I know when if the number of soldiers is $x$, then $x/3$ gives $1$ as remainder, $x/5$ gives $2$ as remainder and $x/7$ gives $3$ as remainder.

I can even explain that $x + 2$ is divisble by $2$, $x + 3$ is divisible by $5$ and $x + 4$ is divisible by $7$. But now what? How to arrive at the solution?

1

There are 1 best solutions below

1
On

Start of by writing those equations in modular form like this: $$\begin{cases} x\equiv 1\pmod 3\\ x\equiv 2\pmod5\\ x\equiv 3\pmod7\\ \end{cases}$$

Then start of by writing the next congruence with the largest modulus namely $x\equiv 3\pmod 7$.

You can write this as $x=7*j + 3$ with $j\in\mathbb Z_0$.

Then you look for the next largest modulus $x\equiv 2\pmod 5$ which you can write as $j=5*k +2$ with $k\in\mathbb Z_0$

$\qquad x= 7\cdot(5\cdot k+2)+3=35\cdot k+17\equiv 1\pmod 3$

$\begin{align}\iff 16-35\cdot k\equiv 0\pmod 3\\ k\equiv 1\pmod 3\\\end{align}$

$\begin{align} \Longrightarrow x=35(3\cdot l+1) +17\\ x= 105\cdot l+52 \end{align}$

with $l\in\mathbb Z_0$.

So if the question wasn't "At least how many soldiers were there in the group" but "Give all the solutions to which the system of modular equations hold". It's $52+105\cdot l$.