1到33任选6个数组合等于69有哪些
答案:2 悬赏:60 手机版
解决时间 2021-12-02 05:40
- 提问者网友:人傍凄凉立暮秋
- 2021-12-01 08:38
1到33任选6个数组合等于69有哪些
最佳答案
- 五星知识达人网友:有你哪都是故乡
- 2021-12-01 10:15
共有6635个。我用EXCEL的 VBA 写了个程序:
按Alt+F11,打开VBA编辑器,插入一个模块,把下面的代码贴进去,按F5执行
Sub 宏1()
x = 1
For i = 1 To 27
For j = i + 1 To 87
For k = j + 1 To 30
For l = k + 1 To 31
For m = l + 1 To 32
For n = m + 1 To 33
If i + j + k + l + m + n = 69 Then
Cells(x, 1) = i & "," & j & "," & k & "," & l & "," & m & "," & n & "=69"
x = x + 1
End If
Next n, m, l, k, j, i
End Sub
按Alt+F11,打开VBA编辑器,插入一个模块,把下面的代码贴进去,按F5执行
Sub 宏1()
x = 1
For i = 1 To 27
For j = i + 1 To 87
For k = j + 1 To 30
For l = k + 1 To 31
For m = l + 1 To 32
For n = m + 1 To 33
If i + j + k + l + m + n = 69 Then
Cells(x, 1) = i & "," & j & "," & k & "," & l & "," & m & "," & n & "=69"
x = x + 1
End If
Next n, m, l, k, j, i
End Sub
全部回答
- 1楼网友:酒者煙囻
- 2021-12-01 10:33
6=13+5=1+5 13=23+5=8+5 32=33+5=27+5 69=43+5=64+5 130=53+5=125+5 …… ∴an=n3+5 ∴下一位是130为所求
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯