791. Average and Variance

Denote the average of numbers by . Their variance is defined as .

Let be the sum of all quadruples of integers satisfying such that their average is exactly twice their variance.

For , there are such quadruples, namely: .

Hence . You are also given .

Find . Give your answer modulo .

791. 平均数与方差

对于 个数 ,记其平均数 ,方差为

为所有满足 ,且其平均数等于两倍的方差的整数四元组 之和。

时,共有 个符合要求的四元组。分别是:,故 。又已知

之值。


这个链接 回到源站。

这个链接 回到详细版题目目录。