Question

In: Advanced Math

A seqstring is a sequence of 18 letters(one of the 26 lowercase letters a-z). How many...

A seqstring is a sequence of 18 letters(one of the 26 lowercase letters a-z). How many seq strings are there where the number of letters between any two occurences of the same letter is at least 2?

Solutions

Expert Solution

if you have any doubt in solution ask me in comment section I will explain


Related Solutions

Write a method that computes the number of lowercase letters (a-z) characters in a String: The...
Write a method that computes the number of lowercase letters (a-z) characters in a String: The method signature is as follows:  public int count(String s)
Problem 33.2ish. How many strings of fourteen lowercase English letters are there which (a) start with...
Problem 33.2ish. How many strings of fourteen lowercase English letters are there which (a) start with the letter x, if letters may be repeated? (b) contain the letter x at least once, if letters can be repeated? (c) contain each of the letters x and y at least once, if letters can be repeated? (d) which contain at least one vowel, where letters may not be repeated?
1. How many permutations of the 26 letters are there that contain none of the sequences...
1. How many permutations of the 26 letters are there that contain none of the sequences ROCK, STONE, PLUG, FIT or HAY?
The ASCII lowercase letters are separated from the uppercase letters by 32. Thus, to convert a...
The ASCII lowercase letters are separated from the uppercase letters by 32. Thus, to convert a lowercase letter to uppercase, subtract 32 from it. Use this information to write a program that reads characters from the keyboard. Have it convert all lowercase letters to uppercase, and all uppercase letters to lowercase, displaying the result. Make no changes to any other character. Have the program stop when the user enters a period. At the end, have the program display the number...
A password is a sequence of letters (a–z) and digits (0–9). Findthe number of passwords...
A password is a sequence of letters (a–z) and digits (0–9). Find the number of passwords of length 10 under the constraints in (a), (b) or (c) (three separate problems). Express your answer using factorials and integers, products and ratios of them, and/or sums of such things.(a) There are 3 letters and 7 digits, and at most one ‘9’.(b) There are 6 letters and 4 digits, and no digit occurs twice.(c) No letters are used BUT the first four digits...
A password is a sequence of letters (a–z) and digits (0–9). Find the number of passwords...
A password is a sequence of letters (a–z) and digits (0–9). Find the number of passwords of length 10 under the constraints in (a), (b) or (c) (three separate problems). Express your answer using factorials and integers, products and ratios of them, and/or sums of such things. (a) There are 3 letters and 7 digits, and at most one ‘9’. (b) There are 6 letters and 4 digits, and no digit occurs twice. (c) No letters are used BUT the...
A monkey randomly hits a keyboard with 26 letters, one per second. (a) How long, in...
A monkey randomly hits a keyboard with 26 letters, one per second. (a) How long, in average, will it take for the monkey to type the letter Z for the first time? I believe that each letter is random and independent, meaning that the probability of the monkey typing any letter is (1/26). Therefore, the expected value is equal to the sum from 1 to 26 times (1/26), yielding 13.5 seconds. I am unsure how to move forward with parts...
Password consists of five characters: one lowercase letter and four digits 0 – 9. How many...
Password consists of five characters: one lowercase letter and four digits 0 – 9. How many possible combinations for the password are there if digits can be repeated? How many possible combinations for the password are there if digits can not be repeated? What is a percentage of passwords with repeated digits?
How many terms of the sequence 18, 16, 14 ............. should be taken so that their sum is zero?
How many terms of the sequence 18, 16, 14 ............. should be taken so that their sum is zero?
a. How many ways are there to rearrange the letters of Massachusetts? b. How many ways...
a. How many ways are there to rearrange the letters of Massachusetts? b. How many ways are there to rearrange such that M can't be at the beginning and A can't be at the end? c. How many ways are there to have the two t's consecutively (next to each other)?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT