你好,想知道你这里的思考过程.谢谢~~
    while(i*i+i<=n*2-1){
        i++;
    }
    returni;
}