codezonediitj / pydatastructs

A python package for data structures and algorithms
https://pydatastructs.readthedocs.io/en/stable/
Other
201 stars 267 forks source link

Decagonal Number #393

Closed U-c0de closed 3 years ago

U-c0de commented 3 years ago

Description of the problem

A decagonal number is a figurate number that extends the concept of triangular and square numbers to the decagon (a ten-sided polygon).

Example of the problem

The n-th decagonal number is given by the formula D(n)=4n2-3n; The first few decagonal numbers are: 0, 1, 10, 27, 52

Assign me @czgdp1807