There is a set of functions f 1 : Z N and f 2 : N Z , which define a one-to-one correspondence between N and Z . This shows that N and Z have the same cardiality (number of elements) are inverses of each other are uncountably infinite are finite sets .