OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..5050
FORMULA
T(n,k) = n(n-1)/2 + U(n,k), where U(n,1) = n, U(n,k) = k-1 if floor(n/k) = floor(n/(k-1)), otherwise U(n,k) = floor(n/k). - Franklin T. Adams-Watters, Jul 25 2006
MATHEMATICA
a = {1}; Do[r = Quotient[n, k]; AppendTo[a, Complement[Range[Max@a + r + 1], a][[r]]], {n, 2, 12}, {k, n}]; a (* Ivan Neretin, Dec 15 2016 *)
CROSSREFS
KEYWORD
AUTHOR
Leroy Quet, Jul 15 2006
EXTENSIONS
More terms from Franklin T. Adams-Watters, Jul 25 2006
STATUS
approved