MathDB
Recursions going to zero

Source: 2015 AIME I Problem 9

March 20, 2015
AMCAIMEAIME I

Problem Statement

Let SS be the set of all ordered triples of integers (a1,a2,a3)(a_1,a_2,a_3) with 1a1,a2,a3101 \le a_1,a_2,a_3 \le 10. Each ordered triple in SS generates a sequence according to the rule an=an1an2an3a_n=a_{n-1}\cdot | a_{n-2}-a_{n-3} | for all n4n\ge 4. Find the number of such sequences for which an=0a_n=0 for some nn.