Question

In: Advanced Math

Every teacher at a high school is given a n-digit code, e.g. 530...297 (n digits in...

Every teacher at a high school is given a n-digit code, e.g. 530...297 (n digits in total).

(1) How many different codes are there?

(2) How many codes read the same backward and forward? (Consider the cases where n is odd or even.)

(3) How many codes contain odd digits only?

(4) How many codes contain at least one even digit?

(5) Consider the case where n is 6. How many codes have distinct digits? (That is, no digit appears more than once.)

Solutions

Expert Solution

(1). In a n-digit code every digit is chosen from 0,1,2,3,4,5,6,7,8,9. So each digit can be chosen in 10 ways and hence, n digits can be chosen in ways. Therefore, there are different codes.

(2). First suppose n is even. Let n=2k. Then we can choose first k digits in any way but the last k digits will be reverse of first k digits. So, there are codes that read same forward and backward.

Now if n is odd, say, n=2k+1. Then we can choose first k+1 digits to be anything but the last k digits will be reverse of the first k digits. So for odd n, there are codes that read the same forward and backward.

(3). A code to contain only odd digits, we have choose from odd digits only. Now there are 5 odd digits, so each digit of a n-digit code can be chosen in 5 ways. Hence, there are codes that contains only odd digits.

(4). Observe that there codes in total among which codes contains odd digit only, so the rest codes contains atleast one even digit.

(5). Here, n is 6. We have to count the no of codes that contains distinct digits. So, the first digit can be chosen in 10 ways. Then the second digit can be chosen in 9 ways as we can't choose the same digit as in the first position. Then the 3rd digit can be chosen in 8 ways as we can't choose the same digits as in the 1st and 2nd position. Then the 4th,5th and 6th digit can be chosen in 7 ways, 6 ways and 5 ways respectively. So there are 6-digit codes containing distinct digits. Note that, this is actually .


Related Solutions

At the local high school, there are 297 students. 71 students are seniors, and out of...
At the local high school, there are 297 students. 71 students are seniors, and out of the 71 students, 53 participate in a sport (while 18 do not participate in a sport). Among those who are not seniors, 69 students participate in a sport and 157 do not. Suppose we choose one student at random from the entire class. A. Are events "drawing someone who is a senior" and "drawing someone who does not play a sport" mutually exclusive? Why/why...
Consider a high school student who is given $3 every school day by her parents as...
Consider a high school student who is given $3 every school day by her parents as “lunch money”. The student works a part time job after school, earning a small amount of “spending cash”. In addition to her lunch money, the student spends $5 from her own earnings each week on lunch. Suppose her parents reduced her lunch money by $2 per day but that she simultaneously receives a $10 per week raise at her job, requiring no extra effort...
A high school teacher is interested to compare the average time for students to complete a...
A high school teacher is interested to compare the average time for students to complete a standardized test for three different classes of students.        The teacher collects random data for time to complete the standardized test (in minutes) for students in three different classes and the dataset is provided below.     The teacher is interested to know if the average time to complete the standardized test is statistically the same for three classes of students. Use a significance level...
Question 1. Airports can be identified globally with a 3-digit letter code (e.g., YYZ for Toronto...
Question 1. Airports can be identified globally with a 3-digit letter code (e.g., YYZ for Toronto Pearson, and CDG for Charles de Gaulle in Paris). All possible combinations of letters A-Z can be used. 1a. What is the probability of selecting an airport at random and it being Montreal’s YUL? 1b. What is the probability of selecting one of London England’s six major airports? 1c. What is the probability of selecting an airport with two letter Y’s, (e.g., YYZ, YXY)?...
A teacher was interested in the mathematical ability of graduating high school seniors in her state....
A teacher was interested in the mathematical ability of graduating high school seniors in her state. She gave a 32-item test to a random sample of 15 seniors with the following results: mean = 1270, and standard deviation = 160. Find the 95% confidence interval and write a sentence describing what it means. Show your work.
Dolores used to work as a high school teacher for $40,000 per year but quit in...
Dolores used to work as a high school teacher for $40,000 per year but quit in order to start her own catering business. To invest in her factory, she withdrew $20,000 fromher savings, which paid 5 percent interest, and borrowed $30,000 from her uncle, whom she pays 4 percent interest per year. Last year she paid $25,000 for ingredients and had revenue of $60,000. She asked Louis the accountant and Greg the economist to calculate her profit for her. Explicit...
This question is an extension from Q2 above. The high school teacher was also interested in...
This question is an extension from Q2 above. The high school teacher was also interested in whether there is a gender difference in terms of the student’s choice of majors. So he broke the data down by gender in the following table and conducted a Chi-square test for independence with α = .05. Type of Major Female Male Total STEM 10 25 35 Social Sciences 11 9 20 Liberal Arts 7 3 10 a. What are the variables in this...
A high school physics teacher wondered if his students in the senior class this year will...
A high school physics teacher wondered if his students in the senior class this year will be more likely to go into STEM (Science, Technology, Engineering, Mathematics) majors than Social Science and Liberal Arts majors. He asked each of his 65 students about their first choice for major on their college applications and conducted a Chi-square test for goodness of fit with an alpha level of .05 to see if the number of students choosing each category differs significantly. 35...
Jojo is given N integers, A1, A2, ..., AN by his teacher. His teacher also give...
Jojo is given N integers, A1, A2, ..., AN by his teacher. His teacher also give him 2M integers, L1,L2,...,LM and R1,R2,...,RM. For each i from 1 to M, his teacher asked him to calculate the sum of odd index numbers from index Li to Ri. For example if Li = 3 and Ri = 7, then he has to calculate the value of (A3 + A5 + A7). Help him by making the program to calculate it quickly! Format...
Do cash incentives improve learning? A high-school teacher in a low-income urban school in Worcester, Massachusetts,...
Do cash incentives improve learning? A high-school teacher in a low-income urban school in Worcester, Massachusetts, used cash incentives to encourage student learning in his AP Statistics class. In 2010, 15 of the 80 students enrolled in his class scored a 5 on the AP Statistics exam. Worldwide, the proportion of students who scored a 5 in 2010 was 0.15. Is this evidence that the proportion of students who would score a 5 on the AP Statistics exam when taught...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT