Calculate the nth term of the Fibonacci sequence, where each number is the sum of the two preceding ones.
Formula
F(n) = F(n−1) + F(n−2), with F(1) = F(2) = 1