
18 Sequence app
The HP Prime Sequence app allows you to dene sequences either explicitly or recursively. Recursive
denitions can dene U(N) in terms of only U(N − 1) or both U(N − 1) and U(N − 2). Similarly, a recursive
denition can dene U(N + 1) in terms of only U(N), or it can dene U(N + 2) in terms of both U(N) and U(N + 1).
Finally, N can start at 1 (the default value), 0, or any positive integer.
In Symbolic view, the rst two boxes contain the rst two numerical values in the sequence, if necessary. For
an explicitly dened sequence, the values can be empty. For a recursively dened sequence, you must enter
at least one value, depending on the nature of your denition.
NOTE: The labels for the values change, depending on the starting value for N selected in the Option box.
In the third box, enter the symbolic denition.
In the Option box, select the terms for the symbolic denition. By default, U(N) is selected, which means that
the symbolic denition is for U(N) in terms of N, U(N-1), both U(N-1) and U(N-2), or some combination of the
previous three options. The other option is U(N+k), which means that the symbolic denition is for either U(N
+1) in terms of U(N) or U(N+2) in terms of U(N+1) and U(N).
Next to the Option box, another box allows you to enter the starting value for N. This value can be 0 or any
positive integer.
In the following example, the Fibonacci sequence is dened as U1(1) = 1, U1(2) = 1, and U1(N) = U1(N − 1) +
U1(N − 2). The Option value is the default U(N), and the starting value of N is 1. This example is used in Getting
started with the Sequence app on page 315.
In the following example, the Fibonacci sequence is dened as U1(1) = 1, U1(2) = 1, and U1(N +2) = U1(N) +
U1(N + 1). The Option value U(N+k) is select, and the starting value of N is 1.
314 Chapter 18 Sequence app
Komentarze do niniejszej Instrukcji