100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Notas de lectura

CPSC 121 Assignment 4 Solutions 2021

Puntuación
-
Vendido
-
Páginas
5
Subido en
09-02-2022
Escrito en
2021/2022

CPSC 121 Assignment 4 Solutions

Institución
Grado









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Estudio
Grado

Información del documento

Subido en
9 de febrero de 2022
Número de páginas
5
Escrito en
2021/2022
Tipo
Notas de lectura
Profesor(es)
Jordon johnson
Contiene
Todas las clases

Temas

Vista previa del contenido

CPSC 121


[8 marks] Prove that for every three non-zero integers a, b and c, at least one of the
three products ab, ac, bc is positive. Hint: use a proof by contradiction.
Proof (by contradiction):
Consider unspecified non-zero integers a, b, c. For the purpose of contradiction, assume
that none of the three products ab, ac, bc are positive. In other words, assume that all
three products are negative.
Consider the product ab. Since ab is negative, assume WLOG that a is positive and b is
negative. Since a is positive and ac is negative, then c is negative.
Since bc is negative, then exactly one of b or c must be negative. This contradicts with
our observation that both b and c must be negative. Therefore, our original assumption
is false, and for every three non-zero integers a, b and c, at least one of the three products
ab, ac, and bc is positive.

, CPSC 121


[8 marks] The Fibonacci numbers are defined as follows: F0 = F1 = 1 and for every
i ≥ 2, Fi = Fi−1 + Fi−2 . We thus get the sequence

1, 1, 2, 3, 5, 8, 13, 21, 34, 55, . . .

Prove by induction that
n
X
Fi = Fn+2 − 1
i=0

Proof by weak induction on n:



Base case: for n = 0
X0
F (i) = F (0) = 1
i=0
0
X
F (i) = F (0 + 2) − 1 = F (2) − 1 = 2 − 1 = 1
i=0
The theorem holds for n = 0.



Inductive hypothesis:
n−1
X
Fi = Fn−1+2 − 1 = Fn+1 − 1
i=0




Inductive step:
Consider an unspecified natural number n. Assume n ≥ 1.
n
X n−1
X
Fi = Fi + Fn by definition of the sum
i=0 i=0
= Fn+1 − 1 + Fn by IH
= Fn+2 − 1 by the Fibonacci definition Fn+2 = Fn + Fn+1
X n
Therefore, by the principle of mathematical induction, Fi = Fn+2 − 1.
i=0
$15.48
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
travissmith1 UBC
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
97
Miembro desde
4 año
Número de seguidores
61
Documentos
36
Última venta
1 mes hace

3.6

16 reseñas

5
6
4
6
3
0
2
0
1
4

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes