Question: please answer question 3. ive F if x is negative g r:N-J,r(n)- remainder after n is divided by 6 (h) ws- S, vis) )- string

please answer question 3.  please answer question 3. ive F if x is negative g

ive F if x is negative g r:N-J,r(n)- remainder after n is divided by 6 (h) ws- S, vis) )- string obtained by removing the last character from s (where S is the set of finite non-null character strings) Determine which of the following functions are one-to-one and which are onto: 2 (a) f:s >S, f(s) string obtained by reversing the order of the characters of s (S (b) g:RxR-R, g((x, y))-x+y (c) S: N-N, s(n) n+1 (d) h: [English words) (letters, h(w)- first letter of word w (e) b: N -finite non-null bit strings), b(n) - binary (finite non-null character strings) representation of n (written without leading zeros) (D) card: PA)>NUl0, card(x)-the cardinality of the setX (where A denotes any finite set) 3 A function f I1, 2, 3, 4, 5- [0, 1,2, 3, 4] is defined by the rule: f(n) is the remainder after 3n is divided by 5. Draw an arrow diagram for this function. Hence state whether fis one-to-one and whether fis onto. For the purpose of error detection, numeric codes (such as ID numbers) often include a final 'check digit Suppose a numeric code consists of a string of 9 digits XIX2- followed by a final check digit xio defined to be the rightmost decimal digit of xi + 2x2 + 3x3 +.. +9x9. (a) Verify that 2516238674 is a valid code. 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!