Repository commit
2104fa7
Python version (python --version)
Python 3.10.4
Dependencies version (pip freeze)
Does not matter.
Expected behavior
solution(2)
should yield 2.
Actual behavior
The result of
solution(2)
is 0.
In this line the condition
if n > 2
should read
if n >= 2
instead.