Problem #PRU-65125

Problemas Métodos Inducción matemática Inducción matemática (otro) Cálculo Secuencias de números Secuencias de números (otro)

Problem

Author: I.I. Bogdanov

Peter wants to write down all of the possible sequences of 100 natural numbers, in each of which there is at least one 4 or 5, and any two neighbouring terms differ by no more than 2. How many sequences will he have to write out?