The Fibonacci numbers are defined as follows: Therefore, the first Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, …
For every given pair of natural numbers and , compute .
Input consists of several pairs of and . Assume and .
For every given pair, print .
Author: Salvador Roura
Generation: 2026-01-25T10:13:23.133Z
© Jutge.org, 2006–2026.
https://jutge.org