so the question boils down to solve for all positive integer n,m such that:
3n*(n+1)/2=2*m*(m+1)