

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Two methods for generating terms in a sequence that alternate between 1 and -1 every two terms. The first approach uses the floor function, while the second approach employs trigonometric functions. The document also includes figures to illustrate the concepts.
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!
Jim Lambers MAT 169 Fall Semester 2009- Lecture 3 Examples
This example corresponds to Section 8.1 in the text.
Example The sequence an = (−1)n, n ≥ 0 ,
has terms that alternate between 1 and −1. That is, a 0 = 1, a 1 = − 1 , a 2 = 1, a 3 = − 1 , and so on. Now, suppose we want to construct a formula for a sequence whose terms alternate signs in pairs. That is, a 0 = a 1 = 1, a 2 = a 3 = − 1 , a 4 = a 5 = 1,
and so on. We present two approaches to this. The first approach makes use of the floor function bxc. For any real number x, bxc is defined to be the greatest integer that is less than or equal to x. For example,
b 1 c = 1, bπc = 3, b 14. 9 c = 14.
The floor function is also known as the greatest integer function, and is an example of a step function, since its graph, shown in Figure 1, consists of line segments that are arranged like steps. To define our sequence, we use the floor function to obtain the sequence of exponents for −1,
b 0 = 0, b 1 = 0, b 2 = 1, b 3 = 1, b 4 = 2, b 5 = 2,
and so on. This is accomplished by setting bn = bx/ 2 c, which, for odd x, results in a fraction, equal to 0.5, which is eliminated by taking the floor, or rounding down. By using bn as the exponent to −1, we obtain the sequence an = (−1)bn^ = (−1)bx/^2 c,
which has the desired terms that alternate between 1 and −1 in pairs. In general, to obtain a sequence that alternates between 1 and −1 every n terms, we can use the sequence with terms (−1)bx/nc. An alternative approach uses trigonometric functions. Figure 2 shows the graph of sin x for 0 ≤ x ≤ 4 π. The circles on the graph indicate the points corresponding to
x =
π 4
kπ 2
, k = 0, 1 ,... , 7.
Note that the values of sin x at these points alternates between ±
2 /2 in pairs. Therefore, we can define the sequence an by
an =
2 sin
( (^) π 4
nπ 2
Figure 1: The graph of the floor function bxc, for − 2 ≤ x ≤ 2.
Figure 2: Graph of sin x for 0 ≤ x ≤ 4 π.