[tex]Fie \; a-numarul \; elevilor \; participanti\\
a=8b+2\\
a=10c+4\\
a=12d+6\\
Adunam \; 6 \; la \; toate \; relatiile \; \\
a+6=8b+8=8(b+1)=8k\\
a+6=10c+10=10(c+1)=10m\\
a+6=12d+12=12(d+1)=12n\\
cmmmc(8,10,12)=120\\
Deci \; a+6 \in M_{120} \Rightarrow a+6 \in \lbrace 120,240,360,480,600,720,840,960, \dots \rbrace\\
Atunci \; a \in \lbrace 114,234, \dots , 954, \dots\rbrace\\ [/tex]