Python 2, (削除) 32 (削除ここまで) 28(削除) 28 (削除ここまで) 25 bytes
lambda n:n*n/8(~-[nn|1)**2/4,-1][n%2]8+n%2
Returns the n-th number (0-indexed)
Python 2, 32(削除) 32 (削除ここまで) 28 bytes
lambda n:(~-nn*n/2)*(~8-n/2+1)[n/2+n%24,-1][n%2]
Returns the n-th number (0-indexed)