Question

In: Statistics and Probability

A word that reads the same from left to right and right to left is a...

A word that reads the same from left to right and right to left is a palindrome. For example, "I", "noon" and "racecar" are palindromes. In the following, we consider palindromic integers. Note that the first digit of an integer cannot be 0.

How many positive palindromic integers are 5-digit long and contain 7 or 8?

Solutions

Expert Solution

Here there must be 5 digits and it shall contain 7 or 8 that means other two digitsshall be 7 or 8 only. Only one more number digit shall be varied.

so here total possibilities when 7 is the first digit that means last digit would be 7 also.

Here now for in between 3 numbers if the next digit is 8 then second last digit shall be 8 and there are 10 possibilities of middle digit so total possiblities = 10

now if 8 is the middle number than also there are 10 possibilites for digit place 2 and digit place 4.

Total possibilities when 7 is the first number = 10 + 10 = 20

Similarly there are total 20 possibilities when the first number is 8 = 20

Here if now the first digit is different than 7 or 8

then for first digit can have 9 values as 0 is not allowed. For middle 3 digits there is only two possibilities which is x787x and x878x.

so here total possibilities = 2 * 9 = 18

Total possibilities = 18 + 20 + 20 = 58


Related Solutions

1. A is called a palindrome if it reads the same from left and right. For...
1. A is called a palindrome if it reads the same from left and right. For instance, 13631 is a palindrome, while 435734 is not. A 6-digit number n is randomly chosen. Find the probability of the event that (a) n is a palindrome. (b) n is odd and a palindrome. (c) n is even and a palindrome.
A is called a palindrome if it reads the same from left and right. For instance,...
A is called a palindrome if it reads the same from left and right. For instance, 13631 is a palindrome, while 435734 is not. A 6-digit number n is randomly chosen. Find the probability of the event that (a) n is a palindrome. (b) n is odd and a palindrome. (c) n is even and a palindrome.
A palindromic number reads the same both ways (left-to-right and right-to-left). The largest palindrome made from...
A palindromic number reads the same both ways (left-to-right and right-to-left). The largest palindrome made from the product of two 2-digit numbers is 9,009 = 91 × 99. The largest palindrome made from the product of two 3-digit numbers is 906,609 = 913 × 993. The largest palindrome made from the product of two 4-digit numbers is 99,000,099 = 9,901 × 9,999. 1. Write a function IN JAVASCRIPT to find the largest palindrome made from the product of two 7-digit...
A palindrome is a word or phrase, which reads the same backward or forward. Write a...
A palindrome is a word or phrase, which reads the same backward or forward. Write a program that prompts the user for a string of characters terminated by a period and determines whether the string (without the period) is a palindrome. IMP: Assume that the input contains only letters and blanks. Assume also that the input is at most 30 characters long. Use an array of characters of size 30 to store the input! Disregard blanks when deciding if the...
An excerpt from the Fourth Amendment reads: “The right of the people to be secure in...
An excerpt from the Fourth Amendment reads: “The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized.” Suspecting a Mr. Flammer of running an illegal gambling and loan sharking operation, the FBI obtained a federal search...
1.In the human heart, blood is pumped from the left ventricle into the left atrium. right...
1.In the human heart, blood is pumped from the left ventricle into the left atrium. right atrium. pulmonary circuit. systemic circuit. 2.Systolic pressure is Group of answer choices the lowest blood pressure in the aorta. the pressure measured when the left ventricle is relaxed. the peak pressure in the aorta when the left ventricle contracts. the difference between the highest and lowest pressures. an average of high and low pressures. 3.The diastolic pressure for a normal young adult would be...
write a python program that reads a sentence and identifies a word from an existing glossary...
write a python program that reads a sentence and identifies a word from an existing glossary and states the meaning of the word
1. Explain the following. a. Compare the right and left ventricular pressures and right and left...
1. Explain the following. a. Compare the right and left ventricular pressures and right and left ventricular volumes. b. What will happen to cardiac output during exercise? Explain what physiological changes occur that cause this change in cardiac output?
4- a) Draw a 4-Bit Shift Register that shifts from right to left instead of left...
4- a) Draw a 4-Bit Shift Register that shifts from right to left instead of left to right using D-Flip flops. b) Draw the serial transfer from shift register A on the right to the shift register B on the left in block form including the timing diagrammes. c) Draw the serial transfer table in the following form, assuming an initial value of 1101 in the register A and 0110 in the register B. Timing Pulse Shift Register B Shift...
1.list 4  Manifestations of Right and Left sided Failure and 4 Symptoms of both right and left...
1.list 4  Manifestations of Right and Left sided Failure and 4 Symptoms of both right and left sided failure. 2.Loop Diuretics are given as a drug of choice, i Name the two Diuretics that affect the loop of Henle. ii What is the dosage and route this would be administered? iiiName a contraindication for this medication. 3. List what assessment parameters must be assessed for CHF 4. Differentiate: Right, Left, Chronic Failure and Acute decompensated heart failure (ADHF).    5. What...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT