Analyzing the Setup
We are given a set S={1,2,3,4} and a function f:S×S→S. The function must satisfy two primary conditions: symmetry, defined as f(a,b)=f(b,a), and a lower bound constraint, f(a,b)≥max(a,b).
Because the function is symmetric, we only need to determine the values for the 10 pairs where a≤b. The domain is effectively reduced to the set of pairs {(1,1),(1,2),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4)}.
The Anchor of the Max Rule
The condition f(a,b)≥max(a,b) acts as a strict constraint on the possible outputs for each pair. For pairs where max(a,b)=4, specifically (1,4),(2,4),(3,4), and (4,4), the output must be ≥4.
Since the codomain is limited to
{1,2,3,4}, the only possible output for these four pairs is
4. Thus, these values are fixed:
f(1,4)=f(2,4)=f(3,4)=f(4,4)=4
The Onto Challenge
For the function to be surjective (onto), every element in S must appear as an output. The value 1 can only be produced by f(1,1) because for any other pair (a,b), max(a,b)>1, forcing f(a,b)≥max(a,b)>1.
Therefore, we must have f(1,1)=1. This leaves us with two remaining groups of pairs to assign:
Group Y={f(1,2),f(2,2)} where the max is 2, allowing outputs in {2,3,4}.
Group X={f(1,3),f(2,3),f(3,3)} where the max is 3, allowing outputs in {3,4}.
The total number of ways to assign these values without considering the surjectivity of
2 and
3 is:
3∣Y∣×2∣X∣=32×23=9×8=72
The Inclusion-Exclusion Victory
We must ensure that 2 and 3 are included in the range. Let A be the set of functions where 2 is missing, and B be the set of functions where 3 is missing. We seek the total minus ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣.
If 2 is missing (Set A), Group Y is restricted to {3,4} (22=4 ways) and Group X is restricted to {3,4} (23=8 ways). Thus, ∣A∣=4×8=32.
If 3 is missing (Set B), Group Y is restricted to {2,4} (22=4 ways) and Group X is restricted to {4} (13=1 way). Thus, ∣B∣=4×1=4.
If both are missing (A∩B), Group Y is restricted to {4} (12=1 way) and Group X is restricted to {4} (13=1 way). Thus, ∣A∩B∣=1×1=1.
Final Calculation
The number of invalid functions is:
∣A∪B∣=32+4−1=35
Subtracting the invalid functions from the total combinations, we find the number of surjective functions:
72−35=37
The total number of such functions is 37.