document.write( "Question 1044685: When the eggs in a basket are grouped into 2,3, or 5 , there is always one extra. What is the least number of eggs for this grouping to be done? \n" ); document.write( "
Algebra.Com's Answer #660031 by robertb(5830)\"\" \"About 
You can put this solution on YOUR website!
We can brute-force our way to a solution:\r
\n" ); document.write( "\n" ); document.write( "1 modulo 2 ===> 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29, 31
\n" ); document.write( "1 modulo 3 ===> 1,4,7,10,13,16,19,22,25,28,31
\n" ); document.write( "1 modulo 5 ===> 1,6,11,16,21,26,31\r
\n" ); document.write( "\n" ); document.write( "Barring the possibility that there is only one egg, the least number of eggs for this grouping to be done is 31.\r
\n" ); document.write( "\n" ); document.write( "(There is a conventional method of doing this problem, by means of the chinese remainder theorem, but the
\n" ); document.write( "solution above should suffice.)
\n" ); document.write( "
\n" ); document.write( "
\n" );