这类题先求2、3、5的最小公倍数,再+1就OK2、3、5、最小公倍数是30,30+1=31,就是这箱橘子至少的个数。
3×5×2=3030+1=31
21个
2x3x5+1=31
Basic程序:for i=2 to 1000if ((i mod 2=1) and (i mod 3=1) and (i mod 5=1)) thengoto 100endifnext i100 print iend结果:31