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