1楼的数列公式是最好的了!———OEIS———没有这串数。
- Table[Floor[n^2/2] (Floor[n^2/2] + 1) - n^2, {n, 28}]
复制代码
{ 2, 11, 56, 131, 306, 551, 992, 1559, 2450, 3539, 5112, 6971, 9506, 12431, 16256, 20591, 26082, 32219, 39800, 48179, 58322, 69431, 82656, 97031, 113906, 132131, 153272}
- Table[Floor[n^2/2] Floor[(n^2 + 2)/2] - n^2, {n, 28}]
复制代码
{ 2, 11, 56, 131, 306, 551, 992, 1559, 2450, 3539, 5112, 6971, 9506, 12431, 16256, 20591, 26082, 32219, 39800, 48179, 58322, 69431, 82656, 97031, 113906, 132131, 153272}
- Table[Floor[( (1 - n^2) ( (1 - n^2) + 1 - Cos[n Pi) - 1)/4], {n, 28}]
复制代码
{ 2, 11, 56, 131, 306, 551, 992, 1559, 2450, 3539, 5112, 6971, 9506, 12431, 16256, 20591, 26082, 32219, 39800, 48179, 58322, 69431, 82656, 97031, 113906, 132131, 153272} |