Let S be the set of all strings of O's and 1's, and define D:S - →→→ Z as follows: For every s ES, D (s) = = the number of 1's minus the number of O's in s. Which one of the following statements about D is true? D is not 1-1 but is onto. D is 1-1 and onto. D is not 1-1 and not onto. D is 1-1 but not onto.

Elements Of Modern Algebra
8th Edition
ISBN:9781285463230
Author:Gilbert, Linda, Jimmie
Publisher:Gilbert, Linda, Jimmie
Chapter1: Fundamentals
Section1.1: Sets
Problem 13E: 13. Let Z denote the set of all integers, and let Prove that .
icon
Related questions
Question

(Discrete Math)

 

Let S be the set of all strings of O's and 1's, and define D:S -
→ Z as follows:
For every s E S, D (s) = the number of 1's minus the number of O's in s.
Which one of the following statements about D is true?
D is not 1-1 but is onto.
D is 1-1 and onto.
D is not 1-1 and not onto.
O D is 1-1 but not onto.
Transcribed Image Text:Let S be the set of all strings of O's and 1's, and define D:S - → Z as follows: For every s E S, D (s) = the number of 1's minus the number of O's in s. Which one of the following statements about D is true? D is not 1-1 but is onto. D is 1-1 and onto. D is not 1-1 and not onto. O D is 1-1 but not onto.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Inequality
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Elements Of Modern Algebra
Elements Of Modern Algebra
Algebra
ISBN:
9781285463230
Author:
Gilbert, Linda, Jimmie
Publisher:
Cengage Learning,