(Periodic sequences)Suppose each term mod $m$ is determined by a fixed rule (not depending on $n$) from the preceding $r$ terms mod $m$. There are only $m^r$ possible blocks of $r$ consecutive residues, so some block repeats, and from then on the sequence is periodic: it is eventually periodic. If each step can be reversed (as for $F_{n+1}=F_n+F_{n-1}$), it is periodic from the start.
← 返回第 74 题