2007 iTest Problems/Problem 54
Problem
Let . Consider the sequence
. Inserting the difference between
and
between them, we get the sequence
. Repeating the process of inserting differences between numbers, we get the sequence
. A third iteration of this process results in
. A total of
iterations produces a sequence with
terms. If the integer
(that is,
times the integer
) appears a total of
times among these
terms, find the remainder when
gets divided by
.