CISC 102 Lecture Notes - Lecture 12: Mathematical Induction, Injective Function, Bijection

112 views3 pages
Verified Note

Document Summary

We can define n! and (n+1)! using these explicit iterative formulae: n! This is a recursive definition of the factorial function. The factorial function is defined for non-negative integers, that is {0,1,2,3, } as follows: (i) (ii) if n > 0 then n! = n x (n-1)! (recursive definition) (internal way of defining things) We can use a recursive definition for the handshake problem! Suppose that s is a set consisting of n elements, n 2. How many two-element subsets are there of the set. Need a base statement and a recursive definition. The recursive definition is based on the observation that a set of n elemetns has n-1 more two-element subsets than a set of n-1 elements. Let f be a fn w domain {2,3,4, } and range , such that: In other words: n , n 2 i. ii. f(2) = 1 (1 two-element subset) f(n) = f(n-1) + n-1 f (n) = n(n 1)/2.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents