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