



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
This exam paper is very helpful for the student of discrete mathematics. The major points in these exam paper are: Binary Number System, N-Digit System, Define Complement, Complement Representations, Boolean Algebra, Proof of Consensus Theorem, Laws and Theorems, Boolean Equality, Boolean Function, Minimal Expression
Typology: Exams
1 / 7
This page cannot be seen from the preview
Don't miss anything!




CSE20 Final Exam (June 11, 2012) Solution
− x ⇒ 8 n^ − x Range = [− 4 × 8 n −^1 , 4 × 8 n −^1 − 1 ]
2.2. Show the arithmetic of x − y where x = 118 and y = 178 in the complement repre- sentations (corresponding to two’s) using a 5-digit system with base 8. (5 points)
x = (^118) = (^000118) y = (^000178) − y = 777778 − 000178 + (^18) = (^777618) x − y = 000118 + (^777618) = (^777728)
ab + a ′ c + bc = ab + a ′ c + 1 ∗ bc ( identity ) = ab + a ′ c + ( a + a ′) bc ( complement ) = ab + a ′ c + abc + a ′ bc ( distributive ) = ab + abc + a ′ c + a ′ bc ( commutative ) = ab ( 1 + c ) + a ′ c ( 1 + b ) ( distributive ) = ab + a ′ c ( boundness )
3.2 Prove the Boolean equality ( a + b )( a ′^ + c ) = ( a + b )( a ′^ + c )( b + c ). (5 points)
( a + b )( a ′^ + c )( b + c ) = ( aa ′^ + ac + a ′ b + bc )( b + c ) ( distributive ) = ( ac + a ′ b + bc )( b + c ) ( complmenet ) = abc + acc + a ′ bb + a ′ bc + bbc + bcc ( distributive ) = abc + ac + a ′ b + a ′ bc + bc ( idempotent ) = ac ( b + 1 ) + a ′ b ( c + 1 ) + bc ( distributive ) = ac + a ′ b + bc ( boundness ) = 0 + ac + a ′ b + bc ( identity ) = a ′ a + ac + a ′ b + bc ( complement ) = a ( a ′^ + c ) + b ( a ′^ + c ) ( distributive ) = ( a + b )( a ′^ + c ) ( distributive )
6.2 What permutation will have the RANK 165? (5 points)
Assume the permutation to be a 6 a 5 a 4 a 3 a 2 a 1 , local rank to be ri for i th level. Originally we start from level 6 and have r 6 = 165.
q 6 = r 6 /5! = 1 r 5 = r 6 − q 6 × 5! = 45 a 6 = { 1 , 2 , 3 , 4 , 5 , 6 } = 2 q 5 = r 5 /4! = 1 a 5 = { 1 , 3 , 4 , 5 , 6 } = 3 r 4 = r 5 − q 5 × 4! = 21 q 4 = r 4 /3! = 3 a 4 = { 1 , 4 , 5 , 6 } = 6 r 3 = r 4 − q 4 × 3! = 3 q 3 = r 3 /2! = 1 a 3 = { 1 , 4 , 5 } = 4 r 2 = r 3 − q 3 × 2! = 1 q 2 = r 2 /1! = 1 a 2 = { 1 , 5 } = 5 r 1 = r 2 − q 2 × 1! = 0 q 1 = r 1 /0! = 0 a 1 = { 1 } = 1
So we have the permutation for RANK 165 as
a 6 a 5 a 4 a 3 a 2 a 1 = 236451
From the question we have the following.
an = n ( n − 1 ) sum ( n ) = Σ ni = 1 ai f ( n ) = n ( n − 1 )( n + 1 )/ 3
And we need to prove that
∀ n ∈ { 1 , 2 ,.. ., +∞} , sum ( n ) = f ( n )
Base case:
sum ( 1 ) = 1 × ( 1 − 1 ) = 0 f ( 1 ) = 1 × ( 1 − 1 ) × ( 1 + 1 )/ 3 = 0 ⇒ sum ( 1 ) = f ( 1 )
Assumption:
∃ k > 0 s.t. sum ( k ) = Σ ki = 1 ai = f ( k ) = k ( k − 1 )( k + 1 )/ 3
Incremental case:
sum ( k + 1 ) = Σ k i =+ 11 ai = Σ ki = 1 ai + ak + 1 = sum ( k ) + ak + 1 = k ( k − 1 )( k + 1 )/ 3 + k ( k + 1 ) = k ( k + 1 ) (( k − 1 )/ 3 + 1 ) = k ( k + 1 )( k + 2 )/ 3 = [( k + 1 )][( k + 1 ) − 1 ][( k + 1 ) + 1 ]/ 3 = f ( k + 1 )
a 1 = 1 a 2 = 1 × 1 + 2 = 3 a 3 = 1 × a 2 + 2 × a 1 = 5
9.2. Derive the recursive formula of an? (5 points)
an = an − 1 + 2 × an − 2
9.3. Find the solution of the recursion. (5 points)
x^2 = x + 2 = x^2 − x − 2 = ( x − 2 )( x + 1 ) ⇒ r 1 = 2 r 2 = − 1 ⇒ an = c 1 ( r 1 ) n^ + c 2 ( r 2 ) n = c 12 n^ + c 2 (− 1 ) n a 1 = 2 c 1 − c 2 = 1 a 2 = 4 c 1 + c 2 = 3 ⇒ c 1 = (^23)
c 2 = 1 3 ⇒ an = 23 × 2 n^ + 13 × (− 1 ) n