diff options
Diffstat (limited to 'progs/a449.py')
-rw-r--r-- | progs/a449.py | 2 |
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 |