Consider the line segment in R^n from the origin to the point P=(1,2,3,...,n); let d = squared distance to this line from the closest point of Z^n (excluding the endpoints). Sequence gives d times P.P.

A059774

Consider the line segment in R^n from the origin to the point P=(1,2,3,...,n); let d = squared distance to this line from the closest point of Z^n (excluding the endpoints). Sequence gives d times P.P.

Terms

    a(0) =1a(1) =3a(2) =9a(3) =21a(4) =40a(5) =75a(6) =120a(7) =189a(8) =285a(9) =385a(10) =506a(11) =650a(12) =819a(13) =1015a(14) =1240a(15) =1496a(16) =1785a(17) =2109a(18) =2470a(19) =2870a(20) =3311a(21) =3795a(22) =4324a(23) =4900a(24) =5525a(25) =6201a(26) =6930a(27) =7714a(28) =8555a(29) =9455

External references