Given the input number n = 10. The nth nonagonal number is given by the formula: n*(7*n - 5)/2 = 325. The output is 325. Given the input number n = 15. The nth nonagonal number is given by the formula: n*(7*n - 5)/2 = 750. The output is 750. Given the input number n = 18. The nth nonagonal number is given by the formula: n*(7*n - 5)/2 = 18. The output is 1089.
[10] [15] [18]
325 750 1089