|
此文章由 一司机 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 一司机 所有!转贴必须注明作者、出处和本声明,并保持内容完整
To solve the problem, we need to understand the process of "Terryfying" the list:
Starting List: The initial list is [0].
Terryfy Rule: For a given list:
Create two new lists where each term is incremented by 1 and 2, respectively.
Concatenate the original list, the first new list, and the second new list.
Example of Generating Terryfied Lists:
Start: [0]
First iteration:
Original list: [0]
First incremented list: [1]
Second incremented list: [2]
Combined: [0, 1, 2]
Second iteration:
Original list: [0, 1, 2]
First incremented list: [1, 2, 3]
Second incremented list: [2, 3, 4]
Combined: [0, 1, 2, 1, 2, 3, 2, 3, 4]
Observations:
The length of the Terryfied list increases rapidly with each iteration. To find the 2012th number:
Compute the cumulative lengths of the lists at each iteration.
Determine which iteration contains the 2012th number.
Trace back to identify the specific number.
I'll calculate this.
The 2012th number in the Terryfied list is 9. |
|