diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -26,7 +26,7 @@
                 start = ptr + 1
             rec.append(ct + 1)
 
-            if rec[-1] >= n1:
+            if rec[-1] > n1:
                 return (len(rec) - 2) // n2
 
             if ptr not in track:
