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