Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
172 views2 pages

Assignment 2020

This document contains 10 questions regarding discrete mathematical structures. The questions cover topics such as finding patterns in sequences, calculating interest on loans with fixed repayments over time, counting arrangements of letters and numbers under certain constraints, counting passwords that meet criteria on character types and arrangements, counting selections from circular and non-circular sets, calculating outputs of loops and circuits, and counting binary strings and teams that meet certain gender criteria.

Uploaded by

Rakesh Gomani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
172 views2 pages

Assignment 2020

This document contains 10 questions regarding discrete mathematical structures. The questions cover topics such as finding patterns in sequences, calculating interest on loans with fixed repayments over time, counting arrangements of letters and numbers under certain constraints, counting passwords that meet criteria on character types and arrangements, counting selections from circular and non-circular sets, calculating outputs of loops and circuits, and counting binary strings and teams that meet certain gender criteria.

Uploaded by

Rakesh Gomani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Discrete Mathematical Structures

Assignment Due: 14-1-2021

Q 1: Find a general form of the following sequence:

a) a1 = -2, a2 = 1, a3 = 4, a4 = 7, a5 = 10, ….
b) a1 = - 3/10 , a2 = 9/13 , a3 = -27/16 , a4 = 81/19 , a5 = -243/22,,…

Q 2: You have borrowed $8000 from the bank. Suppose you want to repay a fixed amount of
money for each of the following n years (except possibly the last year), and the annual
interest rate r does not change in these n years. For example, if r = 10% and you repay
$4000 each year, then you will own the bank $(8000+800-4000) = $4800 next year,
$(4800+480-4000) = $1280 two years after, and at the end of the third year you only need
to repay $(1280 + 128) = $1408.

(a) If r = 10% and you want to repay all the money in 10 years, how much do you need to pay
each year?
(b) If r = 20% and you want to repay all the money in 10 years, how much do you need to pay
each year?
(c) If r = 20% and you want to repay $2500 each year (except possibly the last year). How many
years do you need to repay all the money?
(d) If r = 24% and you want to repay $2000 each year (except possibly the last year). How many
years do you need to repay all the money.

Q 3: There are n identical balls and m different bins. Let Bn,m be the total number of way to put
n balls in m bins.
(a) What are B1,1, B2,1, B1,2, B2,2, B3,2?
(b) Express Bn,m in terms of Bk;m-1, for k = 0,….. n.

Q 4: Consider the word MILLIMICRON in this question.


(a) How many distinguishable ways can the letters of the word be arranged in order?
(b) How many distinguishable orderings of the letters of the word begin with M and end with
N?
(c) How many distinguishable orderings of the letters of MILLIMICRON contain the letters CR
next to each other in order and also the letters ON next to each other in order?

Q 5: Count the number of passwords with following constraints. Assuming digits = {0, 1, …..9},
letters = {a, b, ….. y, z}
(a) 5 characters which are digits or letters.
(b) 4 characters which are digits or letters, with at least 1 digit.
(c) 4 characters which are digits. Adjacent characters are not the same.
(d) 6 characters which are letters. The first half must not equal to the last half.

Q 6: In lecture you have learnt how to count number of ways to choose non-adjacent books.
What if the bookshelf is circular, that means you cannot choose the first and last books
simultaneously? Count the number of ways to choose 6 books out of 20 books on a circular
bookshelf such that no two adjacent books are selected.

Q 7: What is the number of `Hello's printed by the pseudo code below? (for i from lo to hi
exhaust i between lo and hi inclusive, and is a empty loop when lo is greater than hi)

(a) for i from 1 to n


for j from 1 to i - 1
for k from 1 to j - 1
print `Hello'

(b) for i from 1 to 10


for j from i to 10
for k from i to j
print `Hello'

Q 8: Count the number of 01-strings with following constraints.


(a) The length is 8. Number of 1s is 2 more than number of 0s.
(b) The length is 8. Number of 1s is 3 more than number of 0s.
(c) The length is 9. Number of 1s is 3 more than number of 0s.

Q 9: Suppose the group of twelve consists of five men and seven women.
(a) How many five-person teams can be chosen that consist of three men and two women?
(b) How many five-person teams contain at least one man?
(c) How many five-person teams contain at most one man?

Q 10: Consider a digital circuit that reads an n-bit input string and writes a 1bit output. Two
circuits are considered different if they have a different output for some input string,
otherwise they are considered the same (i.e. two circuits are considered the same if they
have the same output bit for every possible input string). Count the number of different
circuits.

You might also like