diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -2,7 +2,7 @@
 a = []
 
 for k in range(1, l):
-    a.append(k + 1)
+    a.append(k)
 for R in range(r, l - 1, -1):
     a.append(R)
 for x in range(r + 1, n + 1):
