OFFSET
1,2
EXAMPLE
The first 8 pairs {m,S(m)} are {1, 1}, {2, 5/2}, {3, 10/3}, {4, 17/4}, {5, 26/5}, {6, 25/3}, {7, 50/7}, {8, 65/8}. When the numbers S(m) are arranged in increasing order, the pairs are {1, 1}, {2, 5/2}, {3, 10/3}, {4, 17/4}, {5, 26/5}, {7, 50/7}, {8, 65/8}, {6, 25/3}, so that the first 8 numerators are 1,5,10,17,26,50,65,25.
MATHEMATICA
z = 100; r[n_] := Select[Divisors[n], GCD[#, n/#] == 1 &];
k[n_] := Length[r[n]];
t[n_] := Table[r[n][[k[n] + 1 - i]]/r[n][[k[1] + i - 1]], {i, 1, k[n]}];
s = Table[{n, Total[t[n]]}, {n, 1, z}]
v = SortBy[s, Last]
v1 = Table[v[[n]][[1]], {n, 1, z}] (* A306010 *)
w = Table[v[[n]][[2]], {n, 1, z}];
Numerator[w] (* A306011 *)
Denominator[w] (* A306012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jun 16 2018
STATUS
approved