Take the list t(n,0) = {1,...,n}; denote by t(n,j) this list after rotating to left (or right) by j positions. Calculate inner product of t(n,0) and t(n,j) and denote the value by s(n,j). Compute this inner product for all j = 1..n and choose the smallest. This is a(n).

A088003

Take the list t(n,0) = {1,...,n}; denote by t(n,j) this list after rotating to left (or right) by j positions. Calculate inner product of t(n,0) and t(n,j) and denote the value by s(n,j). Compute this inner product for all j = 1..n and choose the smallest. This is a(n).

Terms

    a(0) =1a(1) =4a(2) =11a(3) =22a(4) =40a(5) =64a(6) =98a(7) =140a(8) =195a(9) =260a(10) =341a(11) =434a(12) =546a(13) =672a(14) =820a(15) =984a(16) =1173a(17) =1380a(18) =1615a(19) =1870a(20) =2156a(21) =2464a(22) =2806a(23) =3172a(24) =3575a(25) =4004a(26) =4473a(27) =4970a(28) =5510a(29) =6080

External references