Write a program that prints the number of sequences made up of exactly zeros and ones that do not contain two consecutive zeros nor three consecutive ones.
For instance, there are 8 sequences for and :
Input consists of several pairs of natural numbers and , each between 0 and 90.
For every pair of and , print the required number.
Author: Salvador Roura
Generation: 2026-01-25T10:21:21.386Z
© Jutge.org, 2006–2026.
https://jutge.org