Problem #PRU-65125

Problems Methods Mathematical induction Mathematical induction (other) Calculus Number sequences Number sequences (other)

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?