t1.set(i,1);//Existence: there's one number at i-th position in a sorted sequence//and then t1 updates all accumulated records (+1 all the way up)t2.set(i, t1.query(i -1));//set number of sum(existed smaller numbers): no. of tuplest3.set(i, t2.query(i -1));//simila...