When 2007 bars of soap are packed into N boxes of equal size, where N is an integer strictly between 200 and 300, there are 5 bars remaining. Find N.
a=1; b=2007;c= b% a; if( c==5, goto4, goto5);printa," ",; a++;if(a<1000, goto2, 0)
Solutions =7 11 13 14 22 26 77 91 143 154 182 286
All above solutions leave a remainder of 5, but only one is between 200 and 300.
Therefore, the answer =286 Boxes.