奇数5个21+23+25+27+29
偶数4个32+30+28+26
设奇数X个,偶数9-X个.
奇数X个,则从21到21+2(X-1) = 19+2X
偶数9-X个,则从32到32-2(8-X) = 16+2X
则有:
(21+19+2X)*X/2 + (32+16+2X)*(9-X)/2 = 241
化简求得X = 5
奇数5个21+23+25+27+29
偶数4个32+30+28+26
设奇数X个,偶数9-X个.
奇数X个,则从21到21+2(X-1) = 19+2X
偶数9-X个,则从32到32-2(8-X) = 16+2X
则有:
(21+19+2X)*X/2 + (32+16+2X)*(9-X)/2 = 241
化简求得X = 5