OFFSET
1,2
LINKS
EXAMPLE
The "ordering by sum": (1,1),(1,2),(2,1),(1,3),(2,2),(3,1),(1,4),(2,3),(3,2),(4,1),...
The "ordering by product": (1,1),(1,2),(2,1),(1,3),(3,1),(1,4),(2,2),(4,1),(1,5),(5,1),...
MAPLE
ordered_pair_perm := proc(upto_n) local a, i, j; a := []; for i from 1 to upto_n do for j in sort(divisors(i)) do a := [op(a), binomial(((i/j) + j - 1), 2)+j]; od; od; RETURN(a); end;
MATHEMATICA
max = 21; A056534 = {}; For[i = 1, i <= max, i++, Do[ AppendTo[ A056534, Binomial[i/j + j - 1, 2] + j], {j, Divisors[i]}]]; A056534 (* Jean-François Alcover, Oct 05 2012, after Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 20, 2000
STATUS
approved