The sum of interior angles of an n-sided polygon is given by:
S=(n−2)×180∘
Also, using the formula for the sum of an arithmetic progression:
S=2n[2a+(n−1)d]=2n[2(120∘)+(n−1)5∘]=2n(5n+235)
Equating both sums:
2n(5n+235)=(n−2)×180
5n2+235n=360n−720
5n2−125n+720=0
n2−25n+144=0
(n−9)(n−16)=0
So n=9 or n=16.
If n=16, the largest angle would be 120∘+15×5∘=195∘>180∘, which is impossible for a convex polygon.
Hence, n=9.