To find the nth decagonal number, we can use the formula:
dn = 3n^2 - 2n
where n is the term number and dn is the decagonal number corresponding to that term.
Here's a Python function that implements this formula to find the nth decagonal number:
main.py337 chars16 lines
gistlibby LogSnag