level 1
16a+11b+5c
+3
d=720
a取值为0至45的自然数
b取值为0至65的自然数
c取值为0至144的自然数
d取值为0至240的自然数
求所有可能的解
2018年04月14日 15点04分
1
level 1
For[a = 0, a <= 45, a++,
For[b = 0, b <= 65, b++,
For[c = 0, c <= 144, c++,
For[d = 0, d <= 240, d++,
If[16 a + 11 b + 5 c + 3 d == 720,
Print["a=", a, " ; ", "b=", b, " ; ", "c=", c, " ; ", "d=",
d]]]]]]
2018年04月15日 12点04分
4
暴力法:要做101088000次加法
2018年04月15日 12点04分
吧务
level 7
IntegerPartitions[720, All, {16, 11, 5, 3}]
2018年04月16日 00点04分
9
25320个解
2018年04月16日 00点04分
吧务
level 7
SeriesCoefficient[1/((1 - x^3) (1 - x^5) (1 - x^11) (1 - x^16)), {x,
0, 720}]
2018年04月16日 01点04分
10