Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Probability Question - Sequences?

  • 06-12-2014 03:23PM
    #1
    Registered Users, Registered Users 2 Posts: 225 ✭✭


    A ternary string is a sequence of 0s, 1s, and 2s. How many ternary strings of
    length 15 are there?

    Answer:
    3^15

    How many of those strings contain exactly seven 0s, five
    1s, and three 2s?

    Answer:
    I am pretty unsure here. Does this question depend on the first part in any way? Logically it feels like 15c7 . 8c5 . 3c3 is the correct answer?
    But having done a bit of googling I have seen other approaches which made no sense to me. Can anyone clarify if I am right?


    How many ternary strings of length 15 have even weight, i.e.,
    contain an even number of 1s?

    Answer:
    15c2 . 3^13 + 15c4 . 3^11 + 15 c 6 . 3 ^ 9 + ... + 15c14 . 3^1

    Is this correct?


    If anyone can offer a second opinion on my solutions, that would be very helpful, thanks in advance!


Comments

  • Registered Users, Registered Users 2 Posts: 1,595 ✭✭✭MathsManiac


    Your first two answers are correct.

    In the third one, you need to bear in mind that, after you select the position for the 1s, the remaining entries can't be 1, so your powers of 3 should be powers of 2. Also, you've omitted the possibility that there be no 1s in the string: (15C0).2^15 = 2^15.


  • Registered Users, Registered Users 2 Posts: 225 ✭✭TheSetMiner


    Your first two answers are correct.

    In the third one, you need to bear in mind that, after you select the position for the 1s, the remaining entries can't be 1, so your powers of 3 should be powers of 2. Also, you've omitted the possibility that there be no 1s in the string: (15C0).2^15 = 2^15.

    powers of 2 makes sense alright and I completely forgot zero was en even number! Much appreciated!


Advertisement