Self Studies

Discrete Mathematics Test 5

Result Self Studies

Discrete Mathematics Test 5
  • Score

    -

    out of -
  • Rank

    -

    out of -
TIME Taken - -
Self Studies

SHARING IS CARING

If our Website helped you a little, then kindly spread our voice using Social Networks. Spread our word to your readers, friends, teachers, students & all those close ones who deserve to know what you know now.

Self Studies Self Studies
Weekly Quiz Competition
  • Question 1
    1 / -0
    What is the generating function of the sequence {1,1,3,1,1,1,1……………}?
    Solution

    Concept:

    For a sequence {a0, a1, a2, a3,………….,an} of real numbers, the generating function will be defined as :

    F(x) = a0+ a1x + a2x2 + a3x3 + ………+ anxn

    Then for this we take the binomial expansion, such as this generating cuntion is binomial expansion of (1 + x)n.

    Explanation:

    Here , sequence is : {1,1,3,1,1,1,1……………}

    F(x) = 1 + x + 3x2 + x3 + x4 + ………+ xn

    = (1 + x + x2 + x3 + ……..) + 2x2

    = (1 - x)-1 + 2x2                        

    We can also write it as :

    F(x) = (1 + 2x2 – 2x3) / (1 - x)
  • Question 2
    1 / -0
    How many bit strings of length eight either start with a 1 bit or end with the two bits 00?
    Solution

    We can construct a bit string of length eight that begins with a 1 in 27 =128 ways.

    Similarly, we can construct a bit string of length eight ending with the two bits 00, in 26 =64 ways. 

    Some of the ways to construct a bit string of length eight starting with a 1 are the same as the ways to construct a bit string of length eight that ends with the two bits 00. There are 25 =32 ways to construct such a string.

    The number of ways to construct a bit string of length eight that begins with a 1 ort hat ends with 00 = 128+64−32=160. 

  • Question 3
    1 / -0
    From a group of 7 men and 6 women, five persons are to be selected to form a committee so that at least 3 men are there on the committee. In how many ways can it be done?
    Solution

    As we know that number of ways of selecting r things out of n is equal to nCr.

    And   nC=  \(\frac{{n!}}{{r! \times (n - r)!}}\)

    We may have (3 men and 2 women) or (4 men and 1 women) or (5 men only)

    ∴ required number of ways = (7C3 × 6C2) + (7C4 + 6C1) + 7C5

    = {(7 × 6 × 5)/(3 × 2 × 1) × (6 × 5)/(2 × 1)} + (7C4 + 6C1) + 7C5

    = 525 + {(7 × 6 × 5)/(3 × 2 × 1)× 6} + (7 × 6)/(2 × 1)

    = 525 + 210 + 21 = 756

  • Question 4
    1 / -0
    If the recurrence relation capturing the optimal execution time of the towers of Hanoi problem with n discs is T(n) = 2T(n - 1) + 1 then what is the value of T(7)?
    Solution

    Although base condition is not mentioned for tower of Hanoi when number disc is 0, that is, n = 0

    number of moves needed is 0.

    T(0) = 0 (base condition for Tower of Hanoi)

    T(1) = 2 × T(0) + 1 = 0 + 1 = 1

    T(2) = 2 × T(1) + 1 = 2 + 1 = 3

    T(3) = 2 × T(2) + 1 = 6 + 1 = 7

    T(4) = 2 × T(3) + 1 = 14 + 1 = 15

    T(5) = 2 × T(4) + 1 = 30 + 1 = 31

    T(6) = 2 × T(5) + 1 = 62 + 1 = 63

    T(7) = 2 × T(6) + 1 = 126 + 1 = 127

    Tips and Tricks:

    Number of moves required for n disc in a Tower of Hanoi is 2n – 1 = 27 – 1 = 127.

  • Question 5
    1 / -0
    The coefficient of x20 in the expansion of (x3 + x4 + x5 + …………)5 is _____.
    Solution

    Formula:

    \({\left( {1 - ax} \right)^{ - k}} = \;\mathop \sum \limits_{n = 0}^\infty C_n^{n - 1 + k} \times {x^n}\)

    Explanation:

    Given function is:

    = (x3 + x4 + x5 + …………)5

    We can write it as: x15(1 + x2 + x3 + ……….)5

    = x15 (1- x)-5

    \( = {x^{15}}\mathop \sum \limits_{n = 0}^\infty C_n^{n + 4} \times {x^n}\)

    Consider n = 5

    \( = {x^{20}}\mathop \sum \limits_{n = 0}^\infty C_5^{5 + 4}\)

    So, the coefficient of x20 = \(C_5^{5 + 4} = C_5^9 = 126\;\)
  • Question 6
    1 / -0
    What could be the solution for the equation T (n) = 10 T(n-1) – 25 T(n-2)
    Solution

    T (n) = 10 T(n-1) – 25 T(n-2)

    We can write it as :

    T(n) – 10 T(n-1) + 25 T(n-2) = 0

    Then in polynomial form, it can be represented as :

    x2 – 10x + 5 = 0

    (x - 5)2 = 0

    Then the characteristic equation will be :

    T(n ) = C15n + C2.n.5n

    T(0) = T(1) = 5

    So, T(0) = C150 + C2.0.50

    5 = C1

    Now, T(1) = C1 51 + C21.51

    5 = 5C1+ 5C2

    i.e. C1 + C2 = 1

    C2 = -4

    So, T(n) = 5.5n + (-4)n.5n

    = 5n+1 – 4n5n
  • Question 7
    1 / -0
    Consider the recurrence relation a1 = 8, an = 6n2 + 2n + an-1. Let a99 = K × 104. The value of K is.
    Solution

    an = an – 1 + 6n2 + 2n

    = an-2 + 6(n-1)2 + 2(n-1) + 6n2 + 2n

    \(\begin{array}{l} \equiv {a_1} + 6\mathop \sum \limits_{i = 2}^n {i^2} + 2\mathop \sum \limits_{i = 2}^n i\\ \equiv 8 + 6\left[ {\frac{{n\left( {n + 1} \right)\left( {2n + 1} \right)}}{6} - 1} \right] + 2\left[ {\frac{{n\left( {n + 1} \right)}}{2} - 1} \right]\\ \equiv 8 + 6\left[ {\frac{{n\left( {n + 1} \right)\left( {2n + 1} \right) - 6}}{6}} \right] + 2\left[ {\frac{{n\left( {n + 1} \right) - 2}}{2}} \right] \end{array}\)

    ≡ 8 + n (n+1) (2n+1) – 6 + n(n+1) – 2

    an = n(n + 1) (2n + 2)

    aaa = k × 104

    Also,

    aaa = 99 (99 + 1) (198 + 2)

    = 99 × 102 × 2 × 102

    = 198 × 104

    ∴ k = 198
  • Question 8
    1 / -0

    Which of the following is/are closed form expression for the generating function of the sequence {an} where \({a_n} = 5n + 2\) for all n = 0, 1, 2, 3, …? 

    Solution

    \({a_n} = 5n + 2\)

    a0 = 2,a1 = 7, a2 =12, a3 = 17

    Sequence: 2, 7, 12, 17 …

    \(G\left( x \right) = 2 + 7x + 12{x^2} + 17{x^3} + \; \ldots\)    (1)

    \(xG\left( x \right) = 2x + 7{x^2} + 12{x^3} + \; \ldots \;\)    (2)

    Subtracting (1) and (2)

    \(\left( {1\; - x} \right)G\left( x \right) = 2 + 5x + 5{x^2} + 5{x^3} + \; \ldots \)

    \(\left( {1 - x} \right)\;G\left( x \right) = \;\;2 + 5x\left( {1\; + x\; + {x^2} + \; \ldots } \right)\)

    \(\left( {1 - x} \right)\;G\left( x \right) = 2 + \frac{{5x}}{{1 - x}}\)

    \(\left( {1 - x} \right)\;G\left( x \right) = \frac{{3x + 2}}{{1 - x}}\)

    \(\therefore \;G\left( x \right) = \frac{{3x + 2}}{{{{\left( {1 - x} \right)}^2}}}\)

    OR

    \(\left( {1 - x} \right)\;G\left( x \right) = 2 + \frac{{5x}}{{1 - x}}\)\(\)

    \(\;G\left( x \right) = \frac{2}{1-x} + \frac{5x}{(1-x)^2}\)

  • Question 9
    1 / -0
    If \({a_n} = {\alpha _1}{\left( {{r_1}} \right)^n} + {a_2}{\left( {{r_2}} \right)^n}\) is the solution of the recurrence relation \({a_n} = 5{a_n}_{ - 1} - \;6{a_n}_{ - 2}\) with initial condition \({a_0}\) = 1 and  \({r_1}\)\({r_2}\) are characteristic root then what is the sum of \(({\alpha _1} + {\alpha _2} + {r_1} + {r_{2\;}})\)?
    Solution

    Characteristic equation of \({a_n} = 5{a_n}_{ - 1} - \;6{a_n}_{ - 2}\) is

    \({r^2} - 5r + 6 = 0\)

    \(\left( {r - 3} \right)\left( {r - 2} \right) = 0\)

     \(r = 3\;or\;r = 2\)

     \({r_1} = 3,\;{r_2} = 2\)

    \({a_n} = {\alpha _1} \times {\left( r1 \right)^n} + {a_2} \times {\left( r2 \right)^n}\)

    put \({a_0}\) = 1

    \({a_n} = {\alpha _1} \times {\left( 2 \right)^n} + {a_2} \times {\left( 3 \right)^n}\)

    \({a_0} = {\alpha _1} + {a_2} = 1\)        (I)

    \(({\alpha _1} + {\alpha _2} + {r_1} + {r_{2\;}}) = 1 + 2 + 3 = {\rm{ }}6\)

Self Studies
User
Question Analysis
  • Correct -

  • Wrong -

  • Skipped -

My Perfomance
  • Score

    -

    out of -
  • Rank

    -

    out of -
Re-Attempt Weekly Quiz Competition
Selfstudy
Selfstudy
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now