In mathematics, the Fibonacci numbers, commonly denoted as , is a sequence such that each number is the sum of the two preceding numbers, starting with and . That is, and .
Thus, the beginning of the sequence is .
Given , please calculate , where when is even, otherwise .