OFFSET
1,2
COMMENTS
See A186219 for a general discussion of adjusted joint rank sequences.
EXAMPLE
First, write
1..3..6..10..15..21..28..36..45... (triangular)
1.......7......18......34.......55... (heptagonal)
Then replace each number by its rank, where ties are settled by ranking the triangular number before the heptagonal:
a=(1,3,4,6,7,9,10,12,...), A186227.
b=(2,5,8,11,15,18,21,...), A186228.
MATHEMATICA
(* adjusted joint ranking; general formula *)
d=1/2; u=1/2; v=1/2; w=0; x=5/2; y=-3/2; z=0;
h[n_]:=-y+(4x(u*n^2+v*n+w-z-d)+y^2)^(1/2);
a[n_]:=n+Floor[h[n]/(2x)];
k[n_]:=-v+(4u(x*n^2+y*n+z-w+d)+v^2)^(1/2);
b[n_]:=n+Floor[k[n]/(2u)];
Table[a[n], {n, 1, 100}] (* A186227 *)
Table[b[n], {n, 1, 100}] (* A186228 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Feb 16 2011
STATUS
approved