diff options
Diffstat (limited to 'progs/a723.py')
-rw-r--r-- | progs/a723.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a723.py b/progs/a723.py new file mode 100644 index 0000000..231ef5e --- /dev/null +++ b/progs/a723.py @@ -0,0 +1,3 @@ +def get_carol(n):
+ result = (2**n) - 1
+ return result * result - 2
\ No newline at end of file |