Doubt from sequence

#1

Find, with proof, all pairs of positive integers (n, d) with the following property: for
every integer S, there exists a unique non-decreasing sequence of n integers a1, a2, . . . , an ,such that a1 + a2 + · · · + an = S and an − a1 = d.
Submit detailed solution
Thanks

#2

Try this