Let x and x+1 are two consecutive numbers.
According to given question,
(x+1)2−x2=1041
x2−x2+1+2x=1041
2x=1041−1
2x=1040
x=520
And x+1=520+1=521
In how many different ways you can write 15 as the difference of the squares of two natural numbers?