solve n = h(h+1)/2 for h