From 64c19f7a6c8b74e15bed07f0f0337598a001ceb4 Mon Sep 17 00:00:00 2001 From: PatOnTheBack <51241310+PatOnTheBack@users.noreply.github.com> Date: Mon, 8 Jul 2019 08:48:01 -0400 Subject: [PATCH] Delete lucasSeries.py --- maths/lucasSeries.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 maths/lucasSeries.py diff --git a/maths/lucasSeries.py b/maths/lucasSeries.py deleted file mode 100644 index af188c70b..000000000 --- a/maths/lucasSeries.py +++ /dev/null @@ -1,16 +0,0 @@ -"""Lucas Sequence Using Recursion.""" - - -def recur_luc(n): - """Calculate Lucas Sequence Using Recursion.""" - if n == 1: - return n - if n == 0: - return 2 - return recur_luc(n - 1) + recur_luc(n - 2) - - -LIMIT = int(input("How many terms to include in Lucas series:")) -print("Lucas series:") -for i in range(LIMIT): - print(recur_luc(i))