This may seem like a silly question (and it certainly seems that way asking it) but I want to make sure my thought process is correct.
If two sets have the same cardinality then we can define a function $f: A \to B$ that is one-to-one and onto. Cardinality refers to the size of the sets.
Suppose instead I have two sets I know are the same size. Fixing an example:
$A: \{1, 2, 3\}$
$B: \{4, 5, 6\}$
Each has 3 elements. Since they have the same size, does this imply I can find a one-to-one and onto function $f: A \to B$? I would guess so. If I had to pin point my confusion - I think it comes from defining the function. In this case, I think I can define a a function $f = a + 3$, that maps exactly one element of $a \in A$ to every $b \in B$, and every $b \in B$ has some $a \in A$ such that $f(a) = b$.
Is this true in general?