Docsity

Cryptography MATH 0209A - Midterm Exam Practice Problems, Exams of Cryptography and System Security

Toggle sidebar
bg1
Math 3A Practice problems for midterm exam #1
1. Find an expression for anbased on the values of a0,a1,a2,... for
{an}=0,−2
2,4
3,−6
4,8
5,−10
6,...
Answer: an= (−1)n2n
n+1,n=0,1,2,....
2. Consider the recursive sequence defined by an+1=2an−1 and a0=2.
a. Write down the first five terms of this sequence.
Answer: a0=2, a1=2(2)−1=3, a2=2(3)−1=5, a3=9, a4=17.
b. Write down an explicit (non-recursive) description of this sequence.
Answer: an=2n+1, n=0,1,2,....
c. Rewrite the explicit description so that the domain of the sequence is n=0,1,2,....
Answer: an=2n−1+1, n=1,2,3,....
3. Compute
lim
n→∞
n
3n+1
Answer:
lim
n→∞
n
3n+1=lim
n→∞
1
3+1/n
=limn→∞1
limn→∞3+limn→∞1/n
=1
3+0=1
3
4. Compute
lim
x→1
1−2x+x2
1−x
Answer:
lim
x→1
1−2x+x2
1−x=lim
x→1
(1−x)(1−x)
1−x
=lim
x→1(1−x) = 0
5. Use the limit laws to compute
lim
x→0
x+sin(x)
2x
1
pf3
pf4

Partial preview of the text

Download Cryptography MATH 0209A - Midterm Exam Practice Problems and more Exams Cryptography and System Security in PDF only on Docsity!

Math 3A Practice problems for midterm exam #

1. Find an expression for an based on the values of a 0 , a 1 , a 2 ,... for

{ an } = 0 , −

Answer: an = (− 1 ) n^ n^2 + n 1 , n = 0 , 1 , 2 ,.. ..

2. Consider the recursive sequence defined by an + 1 = 2 an − 1 and a 0 = 2.

a. Write down the first five terms of this sequence.

Answer: a 0 = 2, a 1 = 2 ( 2 ) − 1 = 3, a 2 = 2 ( 3 ) − 1 = 5, a 3 = 9, a 4 = 17.

b. Write down an explicit (non-recursive) description of this sequence.

Answer: an = 2 n^ + 1, n = 0 , 1 , 2 ,.. ..

c. Rewrite the explicit description so that the domain of the sequence is n = 0 , 1 , 2 ,.. ..

Answer: an = 2 n −^1 + 1, n = 1 , 2 , 3 ,.. ..

3. Compute lim n →∞

n 3 n + 1

Answer:

lim n →∞

n 3 n + 1

= lim n →∞

3 + 1 / n

lim n →∞ 1 lim n →∞ 3 + lim n →∞ 1 / n =

4. Compute

lim x → 1

1 − 2 x + x^2 1 − x

Answer:

lim x → 1

1 − 2 x + x^2 1 − x = lim x → 1

( 1 − x )( 1 − x ) 1 − x = lim x → 1 ( 1 − x ) = 0

5. Use the limit laws to compute

lim x → 0

x + sin( x ) 2 x

Answer:

lim x → 0

x + sin( x ) 2 x = lim x → 0

x 2 x

  • lim x → 0

sin( x ) 2 x = lim x → 0

lim x → 0

sin( x ) x =

6. Let f ( x ) be defined by

f ( x ) =

x^2 + 2 x − 8 x − 2 x^^6 =^2 a x = 2

What value of a will make f ( x ) continuous at x = 2?

Answer:

lim x → 2

x^2 + 2 x − 8 x − 2

= lim x → 2

( x − 2 )( x + 4 ) x − 2 = lim x → 2 ( x + 4 ) = 6

So if we set a = 6 then lim x → 2 f ( x ) = f ( 2 ), so the function is continuous.

7. For what x values is the function f ( x ) = sin^2 ( x ) continuous?

Answer: Trigonometric functions are continuous wherever they are defined. Since the sine function is defined everywhere, it is continuous everywhwere. Positive powers of x are also continuous everywhere, so the composition of the two functions is also continuous everywhere.

8. Use the intermediate value theorem to show that f ( x ) = x^5 + 3 x^2 + 1 = 0 has a root.

Answer: We see that lim x →−∞ f ( x ) = −∞ and lim x →∞ f ( x ) = ∞. So we can always choose a small enough a and large enough b such that f ( a ) < 0 and f ( b ) > 0. Then the intermediate value theorem tells us that there exists at least one c in ( a , b ) with f ( c ) = 0. This is then a root of f ( x ).

9. Graph the function f ( x ) = | x^2 − 3 |, and use the graph to guess where the function is not differen- tiable.

Answer: Taking the log of all sides of the inequality, we get

1 ≤ ln x ≤

x

Since we are only considering positive values of x , we can divide by x without affecting the inequality

1 x

ln x x

x

We observe that lim x →∞ (^1) x = lim x →∞ √^1 x = 0. Since ln x^ x is sandwiched between (^1) x and √^1 x , and they both go

to zero, then by the sandwich theorem lim x →∞ ln x^ x = 0.

13. The limit

lim h → 0

1 ( 2 + h )^2 + 1 −^

1 5 h

represents the derivative of a function at the point ( a , f ( a )). Find the function f ( x ) and the point a.

Answer: f ( x ) = (^) x (^21) + 1 and a = 2. So that

lim h → 0

f ( a + h ) − f ( a ) h = lim h → 0

1 ( 2 + h )^2 + 1 −^

1 ( 22 + 1 ) h

= lim h → 0

1 ( 2 + h )^2 + 1 −^

1 5 h