Let dd be the sum of the lengths of all the diagonals of a plane convex polygon with nn vertices (n>3)(n > 3), and let pp be its perimeter. Prove that

n−3<2dp<⌊n2⌋⌊n+12⌋−2,n - 3 < \frac{2d}{p} < \left\lfloor\frac{n}{2}\right\rfloor\left\lfloor\frac{n+1}{2}\right\rfloor - 2,

where ⌊x⌋\lfloor x \rfloor denotes the greatest integer not exceeding xx.