For a given natural number M, find all continuous natural number segments (continuous number is greater than 1), the sum of all the continuous natural number segments is M.
Example: 1998+1999+2000+2001+2002 =10000, so a natural number segment from 1998 to 2002 is a solution to M=10000.
10000
18 142
297 328
388 412
1998 2002