Beverly writes down the value of sum, which is 0, as the first term of the
sequence.
She then sets sum=sum+a=0+1=1.
Beverly then writes down the value of sum, which is 1, as the second term of the
sequence.
Since a=9, she
sets a=a+2=1+2=3 and returns to Step 1.
In the table below, we keep track of the values of sum and a, as well as the terms of the sequence as Beverly progresses through the steps.
Values of sum
0
0+1=1
1+3=4
4+5=9
9+7=16
16+9=25
Sequence terms
0
1
4
9
16
25
Values of a
1
1+2=3
3+2=5
5+2=7
7+2=9
stop since a=9
Therefore, the last term in Beverly's sequence is 25.