We are given : Number of diagonals of a polygon = 1127 diagonals.
We know relation between number of diagonals and number of sides of the polygon.
, Where n is the number of sides of the polygon and d is number of diagonals.
Plugging d=1127 in above formula, we get

Multiplying both sides by 2, we get



Solving quadratic equation by factoring, we get factors

Solving for n, we get
n-49=0
n=49.
n+46=0.
n=-46.
We can't take number of sides by a negative number.
Therefore, number of sides does the polygon have 49 side.