How many functions are there from A to B

  • Thread starter Thread starter tysonk
  • Start date Start date
  • Tags Tags
    Functions
Click For Summary
SUMMARY

The total number of functions from set A={a,b,c} to set B={x,y} is 8, derived from the formula 2^n, where n is the number of elements in set A. Each element in A can map to either element in B without restrictions, leading to 2 choices for each of the 3 elements in A. The confusion arose from an incomplete listing of the functions, resulting in only 7 being identified initially. The complete set of functions includes all combinations of mappings from A to B.

PREREQUISITES
  • Understanding of set theory and functions
  • Familiarity with the concept of mappings between sets
  • Knowledge of combinatorial principles
  • Basic mathematical notation and terminology
NEXT STEPS
  • Study the principles of set theory and functions in depth
  • Explore combinatorial mathematics, focusing on counting functions
  • Learn about one-to-one and onto functions for further understanding of function types
  • Investigate the implications of function mappings in computer science and programming
USEFUL FOR

Mathematicians, computer scientists, educators, and students interested in set theory and function analysis.

tysonk
Messages
33
Reaction score
0
How many functions are possible from A to B?

A={a,b,c}
B={x,y}

When I did this by counting the possible functions I could only find 7. But the "uncommon" 7 makes me feel like I missed a case. If someone could confirm that would be appreciated.
 
Physics news on Phys.org


Well, how did you get "7"?

Since there are no restrictions on the function, such as "one-to-one" or "onto", a can be mapped into either x or y, so can b, and so can c so there are clearly [itex]2^3= 8[/itex] such functions. Are you saying that you tried to list them and only got 7?

I get:
{(a, x), (b, x), (c, x)}
{(a, x), (b, x), (c, y)}
{(a, x), (b, y), (c, x)}
{(a, x), (b, y), (c, y)}
{(a, y), (b, x), (c, x)}
{(a, y), (b, x), (c, y)}
{(a, y), (b, y), (c, x)}
{(a, y), (b, y), (c, y)}
 


members of B power members of A
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
Replies
19
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K