Given a number n, find the nth Centered Nonadecagonal number.
A Centered Nonadecagonal Number represents a dot in the centre and other dots surrounding it in successive nonadecagon(19 sided polygon) layers.
The first few Centered Nonadecagonal numbers are:
1, 20, 58, 115, 191, 286, 400, 533, 685, 856, 1046, 1255……………………………
Input : 3 Output : 58 Input : 13 Output :1483
In mathematics, Centered nonadecagonal number for n-th term is given by :
Below is the basic implementation of the above idea:
2th centered nonadecagonal number : 20 7th centered nonadecagonal numbe : 400
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Program to check if N is a Centered nonadecagonal number
- Centered Square Number
- Centered cube number
- Centered heptagonal number
- Centered tridecagonal number
- Centered tetrahedral number
- Centered decagonal number
- Centered triangular number
- Centered Hexadecagonal Number
- Centered dodecahedral number
- Centered hexagonal number
- Centered Octagonal Number
- Centered Pentadecagonal Number
- Centered Octahedral number
- Centered pentagonal number
- Centered Octadecagonal Number
- Centered Dodecagonal Number
- Find the sum of the first N Centered Pentagonal Number
- Program for centered nonagonal number
- Find the sum of the first N Centered Octagonal Number
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.