一応(まともに解いてはいません) https://mathworld.wolfram.com/UniformSumDistribution.html https://oeis.org/search?q=1%2C1%2C-1%2C2%2C-4%2C1%2C6%2C-18%2C12&language=english&go=Search