Defining a Function from a Set: A Practical Guide

  • Thread starter Thread starter jsmith0476
  • Start date Start date
  • Tags Tags
    Functions Sets
jsmith0476
Messages
5
Reaction score
0
Let A = {{1,2},{1,3},{2},{2,5},{3,4,5}}. Define f : A-->N by f(a)=the sum of the elements of a (for all a that are a member of A).

I am just not sure how to define a function from a set. I have been really sick and haven't been able to make it to class :( Can someone point me in the right direction?
 
Physics news on Phys.org
So I have been reading some other posts and I think I understand it a bit more. Tell me if this would be right:

f( {2} ) = 2,
f( {1,2} ) = 1 + 2 = 3,
f( {1,3} ) = 1 + 3 = 4,
f( {2,5} ) = 2 + 5 = 7,
f( {3,4,5} ) = 3 + 4 + 5 = 12.

And so if I were to find the range of f it would be f = {2, 3, 4, 7, 12}??
 
Yes, that is exactly what "the sum of the elements of a" means! And since, as usual, "range of f" means "set of all values of f(a)", the range is {2, 3, 4, 7, 12} as you say.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top