After the piggery event, the No. 1023 big dog was very angry, and he decided to make things difficult for ZzK, so he gave ZzK a number of M, for a given natural number M, to find out all the continuous natural numbers (the number of consecutive numbers greater than 1), and the sum of the total number of these continuous natural segments was M. If ZzK doesn't figure out, No. 1023 is going to tear down his pigsty, and ZzK doesn't want his pig raising business to fall down just now. Please help ZzK.
For example:1998+1999+2000+2001+2002 = 10000 so from 1998 to 2002 is one of the solve of M=10000.
10000
18 142
297 328
388 412
1998 2002
回溯、搜索