An infinite number of distinct operations, A # B = A*Y (Y-1)/K exist. Note that A # B # C = A # (B*C)in each case. Two such operations mention in my earlier post have utility in the study of differences between a square and a triangular number, T(n) = n(n 1)/2; and are worth mentioning for that reason. They are1. A @ B = A*B^2 (B^2-1)/8 and
2. A Ó B = A*B (B-1)/2
Proof
In each case,
(A # Y) # Y` = (A*Y (Y-1)/K) *Y` (Y`-1)/K
= A*Y*Y` Y`*(Y-1)/K (Y`-1)/K
= A*(Y*Y`) (Y*Y` - Y` Y` -1)/K
= A*(Y*Y`) (Y*Y` - 1)/K
= A # (Y*Y`).
Now with regard to a triangular number minus a square, let the difference be A, S be the number that is squared and Q be the argument of T such that T(Q) - S^2 = A, then T(Q Ó B) - (S*B)^2 = A @ B.
Proof:
(S*B)^2 = T(Q Ó B) – A @ B
= - <(T(Q) – S^2) @ B> T(Q*B {B-1}/2)
= (S^2 – T(Q)) * B^2 - (B^2-1)/8 T(Q*B B/2 - 1/2)
= (S*B)^2 - (B^2)*Q(Q 1)/2 - (B^2-1)/8 <(Q*B B/2) –1/2><(Q*B B/2) 1/2>/2
= (S*B)^2 - {(Q*B)^2}/2 - (B^2)*Q/2 - (B^2-1)/8 <((Q*B B/2)^2)/2 –1/8>
= (S*B)^2 - <(Q*B)^2 (Q*B)*B (B^2)/4>/2 < (Q*B B/2)^2>/2
= (S*B)^2