Answer:
14 students
Explanation:
Let x be the number of students,
![x<70.](https://img.qammunity.org/2020/formulas/mathematics/middle-school/bx2cl82bxcey5rvoniy45m58vxpcs9vufq.png)
- If a gym class is divided into 4 equal teams, 2 students have to sit out, so
![x\equiv 2(\rm mod \ 4);](https://img.qammunity.org/2020/formulas/mathematics/middle-school/1g3evjbtmifezi8hevfy6r87fwfzz4eu6g.png)
- If a gym class is divided into 5 equal teams, 1 student has to sit out, so
![x\equiv 1(\rm mod \ 5);](https://img.qammunity.org/2020/formulas/mathematics/middle-school/a4n7z40de4v9oc7k05rp5j31rkwjfy9kv3.png)
- If a gym class is divided into 6 equal teams, 4 students have to sit out, so
![x\equiv 4(\rm mod \ 6).](https://img.qammunity.org/2020/formulas/mathematics/middle-school/n3ze87isj2xht2t7qfysr2pzwirydo62u3.png)
From the first congruence,
![x=2+4k,](https://img.qammunity.org/2020/formulas/mathematics/middle-school/ht7ej3axhf0cqgnbuj8prb3a68s1gpsp4l.png)
substitute it into the second congruence:
![2+4k\equiv 1(\rm mod\ 5)\\ \\4k\equiv -1(\rm mod\ 5)\\ \\4k\equiv -1+5(\rm mod \ 5)\\ \\4k\equiv 4(\rm mod \ 5)\\ \\k\equiv 1(\rm mod \ 5)\\ \\k=5l+1\\ \\x=4(5l+1)+2=20l+6](https://img.qammunity.org/2020/formulas/mathematics/middle-school/odblwvvwd19m9jqjjjpyaxxc6q44pk0u29.png)
Substitute this into the third congruence:
![20l+6\equiv 4(\rm mod\ 6)\\ \\20l\equiv -2(\rm \ mod 6)\\ \\20l\equiv -2+6\cdot 7(\rm mod\ 6)\\ \\20l\equiv 40(\rm mod \ 6)\\ \\l\equiv 2(\rm mod 6)\\ \\l=6m+2\\ \\x=20(6m+2)+6=120m+46](https://img.qammunity.org/2020/formulas/mathematics/middle-school/6r4mz24k6wuov533s9f4p0tei27dnnb5o4.png)
Since
then
![x=46\ (\text{when }m=0)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/cbymgwsq6sglkm66t8kad5ue3x58qmu3r5.png)
The next number divisible by 4, 5 and 6, greater than 46 and less than 70 is 60, so 14 students should be added.