diff options
Diffstat (limited to 'progs/a447.py')
-rw-r--r-- | progs/a447.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a447.py b/progs/a447.py new file mode 100644 index 0000000..3ccb78f --- /dev/null +++ b/progs/a447.py @@ -0,0 +1,5 @@ +def sequence(n):
+ if n == 1 or n == 2:
+ return 1
+ else:
+ return sequence(sequence(n-1)) + sequence(n-sequence(n-1))
\ No newline at end of file |