Two positive integers and () can generate a sequence in the following manner:
is the first term,
for and
the generation stops when a term becomes 0 or 1.
The number of terms in this sequence is denoted .
For example, with and , we get , , , etc. Giving the sequence of 29 terms:
Hence .
is defined to be the maximum value of for . For example, .
Further, define to be the maximum value of for . For example, and .
Find .
693. 有限序列生成器
我们可以使用两个正整数 、(),通过以下方式生成一个序列:
。
当正整数 时,。
当其中一项为 0 或 1 时,停止生成。
记 为这个序列的项数。例如:、 时,可以得到 ,,,如此往复,可以得到这个序列的 29 个项:
,故 。
记 为对于所有 , 的最大值。已知:。
记 为对于所有 , 的最大值。已知: 且 。
求 。
点 这个链接 回到源站。
点 这个链接 回到详细版题目目录。