✔ 最佳答案
1.寫出韓信有多少兵,3人一班餘2, 5人一班餘3, 7人一班餘2,問最少有多兵,若已知接近於10萬,實際有多少兵。Ans:x=3p+2=5q+3=7r+23p=5q+1 => p=2+5a, q=1+3a; {a,b,c=0,1,2,3...}3p=5r => r=3b, p=7b=2+5a => a=1+7c, b=1+5c代入上式:p=2+5a=2+5(1+7c)=7+35cq=1+3a=1+3(1+7c)=4+21cr=3b=3(1+5c)=3+15c=> x=3p+2=3(7+35c)+2=23+105c => Xmin=23......ans=100,000c=(100,000-23)/105=952.1619 => c=952x=23+105*952=99,983......ans
2014-04-16 07:03:26 補充:
x=99,983 才對
粗體後, 逗點變成小數點 99.983