The problem is:
S = an^2 + bn
Where a and b are constants.
Possible values for S are: 6, 15, 27, 42 and 60
Possible values for n are: 1 when S=6, 2 when S=15, 3 when S=27, 4 when S=42 and 5, when S=60.
I am asked to find the values of a and b.
The way I tried to tackle it was...