Discrete Math

Let A={0,1,2,3,4}. Define a function f from A to A by f(n)=2n mod 5.

a/ Is f one-to-one?
b/ Is f onto?

Could you show me how to solve this problem, please? I have no idea what this function is.

Your help is greatly appreciated.

  1. 👍
  2. 👎
  3. 👁
  1. f(0)=2x0=0=0 mod 5
    f(1)=2x1=2=2 mod 5
    f(2)=2x2=4=4 mod 5
    f(3)=2x3=6=1 mod 5
    f(4)=2x4=8=3 mod 5,
    so f(A)={0,1,2,3,4}
    a/- yes
    b/- yes

    1. 👍
    2. 👎
  2. The function has been defined already:
    f : A -> A
    where
    f(n) = 2n mod 5

    To determine if the function is one-to-one and onto, we can enumerate the values of x and f(x) and compare with the elements of A = {0,1,2,3,4}.

    x f(x)=2n mod 5
    0 0 [2*0 mod 5 = 0 mod 5 = 0]
    1 2 [2*1 mod 5 = 2 mod 5 = 2]
    2 4
    3 1 [2*3 mod 5 = 6 mod 5 = 1]
    4 3

    Recall the definition of "one-to-one" is
    "A function f from A to B is called one-to-one (or 1-1) if whenever
    f (a) = f (b) then a = b. No element of B is the image of more than one element in A."

    Since no element in B (=f(x)) can be mapped from more than one element in A, the function is one-to-one.

    Recall the definition of "onto".
    "A function f from A to B is called onto if for all b in B there is an a in A such that f (a) = b. All elements in B are used."

    Since every element of set B (=f(x)) maps to an element in A, the function is onto.

    Many links are available for the definition and explanation of the two terms, you can try the following as a start, as it explains with clear examples:

    http://www.regentsprep.org/Regents/math/algtrig/ATP5/OntoFunctions.htm

    1. 👍
    2. 👎
  3. Thank you so much for your replies.

    Could you also verify what I did on this problem please?

    The set of course numbers for a collection of math courses is:

    M = {0099,1111,1113,2200,2210,2220,2300,2450,2500,3500,4500,4900}
    Define a relation R on M by (x,y) in R if course numbers x and y start with the same number.

    a/ Verify that R is an equivalence relation

    Reflexive: yes, because course number x start with the number itself.

    Symmetric: yes, because if x starts with the same number as y, then y also starts with the same number as x.

    Transitive: Yes, because for all courses x,y, and z, if x starts with the same number as y and y starts with
    the same number as x, then x starts with the same number as z.

    R is an equivalence because it is reflexive, symmetric, and transitive.

    b/ Describe the distinct equivalence classes of R.

    There are 5 equivalence classes:
    [1] = {0099}
    [2] = {1111, 1113}
    [3] = {2200,2210,2220,2300,2450,2500}
    [4] = {3500}
    [5] = {4500,4900}

    1. 👍
    2. 👎
  4. Looks all good to me!

    1. 👍
    2. 👎

Respond to this Question

First Name

Your Response

Similar Questions

  1. Math-Trigonometry

    Can someone help me with this problem. -A Ferris wheel has a radius of 37.8 feet. The bottom of the Ferris wheel sits 0.7 feet above the ground. You board the Ferris wheel at the 6 o'clock position and rotate counter-clockwise.

  2. calc

    3. the graph of a function F crosses the x-axis at -1 and 3 and touches the x-axis at 5. which equations could define this function select all that apply a- f(x)= (x+1)(x-3)(x-5) b- f(x)= (x+1)(x-3)(x-5)^2 c- f(x)=

  3. Math

    Define the inverse cotangent function by restricting the domain of the cotangent function to the interval (0, π). Evaluate the expression without using a calculator. (Enter your answer in radians.) arccot(− √3)

  4. Math

    Find all numbers $r$ for which the system of congruences: x == r mod 6 x == 9 mod 20 x == 4 mod 45 has a solution.

  1. algebra

    Suppose a function f(x) has a domain of (-inf,inf) and range [-11,3]. If we define a new function g(x) by g(x)=f(6x) +1, then what is the range of g(x)? Express your answer in interval notation. Thank you!

  2. Math

    Prove that a^3 ≡ a (mod 3) for every positive integer a. What I did: Assume a^3 ≡ a (mod 3) is true for every positive integer a. Then 3a^3 ≡ 3a (mod 3). (3a^3 - 3a)/3 = k, where k is an integer a^3 - a = k Therefore, a^3

  3. Health

    1. Name the six basic nutrients needed by the body. What is each of their function? What types of foods might you find them in? How do they each benefit the body? 2. Define dehydration. Discuss the effects of dehydration on the

  4. Pre-Calculus

    Define the inverse secant function by restricting the domain of the secant function to the intervals (0, pi/2) and (pi/2, pi), and sketch the inverse function’s graph.

  1. Computers

    1. An 7-bit counter is wired as follows: The CLK input to the first stage (LSB) is the system clock. Each stage's output is used as the CLK input to the next higher stage. This counter is a: A. MOD 128 ripple counter B. MOD 256

  2. Math (Proof)

    Prove that if ab = ac (mod n) and a is relatively prime to n, then b = c (mod n). Proof: a and n are relatively prime and from ab = ac(mod n), we have n|(ab-ac), so n|a(b-c). Since (a,n)=1 (relatively prime), we get n(b-c). hence

  3. Pre-Cal: Word Problem

    I'm having a lot of trouble on this word problem. Can someone help me plz? To define the inverse sine function, we restrict the domain of sine to the interval ______. On this interval the sine function is one-to-one, and its

  4. Calculus

    The following definite integral gives the area of the region between the graph of the function f(x) = Icosx - x^2I (I=modulus), the x-asis, and the lines x=-2 and x=2. the integral of mod cosx - x^2 from -2 to 2. Describe a

You can view more similar questions or ask a new question.