Beverly creates a sequence of integers. She begins by setting
and . She then writes
down the value of as the first term of the sequence.
Beverly continues the sequence by applying the following steps:
Step 1: She sets .
Step 2: She writes down the value of as the next
term of the sequence.
Step 3: If , she stops; otherwise she sets and returns to Step 1.
What is the last term in Beverly's sequence?