An icosikaienneagonal number is a class of figurate numbers. It has 29 – sided polygon called icosikaienneagon. The N-th icosikaienneagonal number count’s the 29 number of dots and all other dots are surrounding with a common sharing corner and make a pattern.
The first few icosikaienneagonol numbers are
1, 29, 84, 166 …
Find the Nth icosikaienneagonal number
Given a number N, the task is to find Nth icosikaienneagonal number.
Input: N = 2
The second icosikaienneagonol number is 29.
Input: N = 3
- In mathematics, the N-th s-sided polygon number is given by the formula:
- Therefore Nth term of 29 sided polygon is
Below is the implementation of the above approach:
Time Complexity: O(1)
Auxiliary Space: O(1)
My Personal Notes arrow_drop_up
Please Login to comment...