Thomas had 899 sweets to be divided into n bags. He put 29 in the first bag. For each subsequent bag, he put 29 more than he did in the previous bag. He continued to fill the bags until there were enough sweets to fill the next bag in the same manner. Find the number of sweets that are left behind.

Therefore, there were bags filled full with sweets. of the bag was left out.

Sweets left out sweets

But the answer is