1到12被分成4个数字一组,若每组相加的和相等,请问有多少种分法。

2024年11月15日 10:30
有2个网友回答
网友(1):

有32组解,下面的这64组有一半是重复的
{{1,7,8,10,4,5,6,11,2,3,9,12},{1,7,8,10,3,5,6,12,2,4,9,11},{1,7,8,10,2,4,9,11,3,5,6,12},{1,7,8,10,2,3,9,12,4,5,6,11},{1,6,9,10,3,5,7,11,2,4,8,12},{1,6,9,10,3,4,8,11,2,5,7,12},{1,6,9,10,3,4,7,12,2,5,8,11},{1,6,9,10,2,5,8,11,3,4,7,12},{1,6,9,10,2,5,7,12,3,4,8,11},{1,6,9,10,2,4,8,12,3,5,7,11},{1,6,8,11,4,5,7,10,2,3,9,12},{1,6,8,11,3,4,9,10,2,5,7,12},{1,6,8,11,3,4,7,12,2,5,9,10},{1,6,8,11,2,5,9,10,3,4,7,12},{1,6,8,11,2,5,7,12,3,4,9,10},{1,6,8,11,2,3,9,12,4,5,7,10},{1,6,7,12,4,5,8,9,2,3,10,11},{1,6,7,12,3,5,8,10,2,4,9,11},{1,6,7,12,3,4,9,10,2,5,8,11},{1,6,7,12,3,4,8,11,2,5,9,10},{1,6,7,12,2,5,9,10,3,4,8,11},{1,6,7,12,2,5,8,11,3,4,9,10},{1,6,7,12,2,4,9,11,3,5,8,10},{1,6,7,12,2,3,10,11,4,5,8,9},{1,5,9,11,3,6,7,10,2,4,8,12},{1,5,9,11,3,4,7,12,2,6,8,10},{1,5,9,11,2,6,8,10,3,4,7,12},{1,5,9,11,2,4,8,12,3,6,7,10},{1,5,8,12,4,6,7,9,2,3,10,11},{1,5,8,12,3,6,7,10,2,4,9,11},{1,5,8,12,3,4,9,10,2,6,7,11},{1,5,8,12,2,6,7,11,3,4,9,10},{1,5,8,12,2,4,9,11,3,6,7,10},{1,5,8,12,2,3,10,11,4,6,7,9},{1,4,10,11,5,6,7,8,2,3,9,12},{1,4,10,11,3,6,8,9,2,5,7,12},{1,4,10,11,3,5,6,12,2,7,8,9},{1,4,10,11,2,7,8,9,3,5,6,12},{1,4,10,11,2,5,7,12,3,6,8,9},{1,4,10,11,2,3,9,12,5,6,7,8},{1,4,9,12,5,6,7,8,2,3,10,11},{1,4,9,12,3,6,7,10,2,5,8,11},{1,4,9,12,3,5,8,10,2,6,7,11},{1,4,9,12,3,5,7,11,2,6,8,10},{1,4,9,12,2,6,8,10,3,5,7,11},{1,4,9,12,2,6,7,11,3,5,8,10},{1,4,9,12,2,5,8,11,3,6,7,10},{1,4,9,12,2,3,10,11,5,6,7,8},{1,3,10,12,5,6,7,8,2,4,9,11},{1,3,10,12,4,6,7,9,2,5,8,11},{1,3,10,12,4,5,8,9,2,6,7,11},{1,3,10,12,4,5,6,11,2,7,8,9},{1,3,10,12,2,7,8,9,4,5,6,11},{1,3,10,12,2,6,7,11,4,5,8,9},{1,3,10,12,2,5,8,11,4,6,7,9},{1,3,10,12,2,4,9,11,5,6,7,8},{1,2,11,12,5,6,7,8,3,4,9,10},{1,2,11,12,4,6,7,9,3,5,8,10},{1,2,11,12,4,5,8,9,3,6,7,10},{1,2,11,12,4,5,7,10,3,6,8,9},{1,2,11,12,3,6,8,9,4,5,7,10},{1,2,11,12,3,6,7,10,4,5,8,9},{1,2,11,12,3,5,8,10,4,6,7,9},{1,2,11,12,3,4,9,10,5,6,7,8}}

网友(2):

1-12中取4个数字相加为26,这个可以编个程序算出来有多少组