Question

In: Math

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.

Solutions

Expert Solution

There are total 999,999 six digits number .

In that numbers Total pallindrome numbers are :

Now let ABCDEF be the six digit number ,Since ABCDEF Is pallindrome number ,Therefore A=F ,B=E & C=D

A can be any letter from 1 to 9 .

I.e. A has 9 possible digits . In similar way B has 10 choices And C has 10 choices .(B and C taking value 0 also )

Therefore , Total possible 6 digit pallindrome numbers are 9*10*10 = 900

(a) Probability that n is palindrome =

(b) Probability that n is odd and n is pallindrome :

Odd number means the number which is not divisible by 2 that means the number has digit 1,3,5,7,9 at the unit place .

Since number is pallindrome the choices of first digit is also 1,3,5,7,9.

I.e Total possible odd 6 digit pallindrome numbers are 5*10*10 = 500

Probability that n is odd and n is pallindrome =

(c) Probability that n is even and n is pallindrome :

Odd number means the number which is divisible by 2 that means the number has digit 0,2,4,6,8  at the unit place .

But 0 is not possible because if we take 0 then number will of 5 digits

Since number is pallindrome the choices of first digit is also 2,4,6,8.

I.e Total possible odd 6 digit pallindrome numbers are 4*10*10 = 400

Probability that n is even and n is pallindrome =


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 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 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?
In C++: This is the problem: [(1)] A palindrome is a string that reads the same...
In C++: This is the problem: [(1)] A palindrome is a string that reads the same forwards as backwards. Using only a fixed number of stacks and queues, the stack and queue ADT functions, and a fixed number of int and char variables, write an algorithm to determine if a string is a palindrome. Assume that the string is read from standard input one character at a time. The algorithm should output true or false as appropriate [(2)] Let Q...
IN JAVA - [(1)] A palindrome is a string that reads the same forwards as backwards....
IN JAVA - [(1)] A palindrome is a string that reads the same forwards as backwards. Using only a fixed number of stacks and queues, the stack and queue ADT functions, and a fixed number of int and char variables, write an algorithm to determine if a string is a palindrome. Assume that the string is read from standard input one character at a time. The algorithm should output true or false as appropriate [(2)] Let Q be a non-empty...
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...
C++: A palindrome is a string that is the same backward as it is forward. For...
C++: A palindrome is a string that is the same backward as it is forward. For example, “tot” and “otto” are rather short palindromes. Write a program that lets a user enter a string and that passes to a bool function a reference to the string. The function should return true if the string is a palindrome and false otherwise. When you do the judgment, capitalization, spaces, and punctuation should be neglected, that is, “Madam, I’m Adam” should test as...
Java Palindrome Use StringBuilder concept to create a palindrome checker.   Method should be called pCheck. Must...
Java Palindrome Use StringBuilder concept to create a palindrome checker.   Method should be called pCheck. Must use var-arg concept.   Class name for this program is Palindrome.   Must pass this test:: public class PalindromeTest { public static void main(String[] args) { Palindrome palindrome = new Palindrome(); boolean answer = palindrome.pCheck("racecar", "Bell", "elle", "bunny"); System.out.println(“These are palindromes: " + answer); } }
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT