登录
A344806型
以两种或两种以上的方式表示的六个平方和的数字。
6
21, 24, 29, 30, 33, 36, 38, 39, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98
抵消
1,1
链接
例子
24 = 1^2 + 1^2 + 1^2 + 1^2 + 2^2 + 4^2
= 2^2 + 2^2 + 2^2 + 2^2 + 2^2 + 2^2
所以24是一个术语。
黄体脂酮素
(Python)
从itertools导入combinationswith_replacement作为cwr
从集合导入defaultdict
keep=默认dict(λ:0)
power_terms=[x**2,对于范围(11000)内的x
对于cwr中的pos(power_terms,6):
tot=总和(pos)
保持[tot]+=1
rets=已排序([k代表k,v在keep.items()中,如果v>=2])
对于范围内的x(len(rets)):
打印(rets[x])
关键词
非n
作者
状态
经核准的