summaryrefslogtreecommitdiff
path: root/progs/a498.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a498.py')
-rw-r--r--progs/a498.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/a498.py b/progs/a498.py
new file mode 100644
index 0000000..728f1cb
--- /dev/null
+++ b/progs/a498.py
@@ -0,0 +1,2 @@
+def hexagonal_num(n):
+ return n*(2*n - 1) \ No newline at end of file