题解 | #尼科彻斯定理#
尼科彻斯定理
https://www.nowcoder.com/practice/dbace3a5b3c4480e86ee3277f3fe1e85
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
rl.on("line", function (line) {
const n = Number(line);
let res = [];
let a = n ** 3 / n - (n - 1); // 根据等差数列的求和公式,得出首项值
for (let i = 0; i < n; i++) {
res.push(a);
a += 2;
}
console.log(res.join("+"));
});

