I gave one example of a mapping of an infinite set, viz.
N, to itself which is not a bijection (it is a injection, a.k.a. 1-to-1, of course) in the Hilbert Hotel story.
Actually, there were already 2 non-bijective functions in that case:
- the re-allocation of room numbers for the existing guests
- the mapping of the new guests to their rooms: for the new guests, on entering the bus on departure of their trip, each got a number allotted by the tour operator
The story of Hilbert's Hotel is not yet over. Hilbert was indeed a very special tour operator: not only did each of his buses have infinitely many seats, he also had infinitely many buses.
As an aside: this of course makes price fighters such as Richard Branson green with envy. Think of the profits you can make with such buses! Branson has tried to recreate Hilbert's success as tour operator. Needless to say, he failed. The phenomenon has only been observed thus far in the beginning of the 20th C. in central Germany, a bit south-east of Hanover. The only explanation thus far is that the extremely high density of mathematicians and physicists created a rift in the space/time continuum which made this possible. The phenomenon disappeared instantly after the Nazi's purged many of those because they were jewish.
So one day, infinitely many full Hilbert buses (so with each infinitely many passengers) arrive at Hilbert's Hotel, which is also full at that moment with infinitely many guests. How to accommodate all those newly arrived guests?
For the hotel manager Hilbert, however, this is no problem. He already has one non-bijective function p which enumerates all prime numbers; so p(1) = 2, p(2) = 3, p(3) = 5, etc. As a true manager, Hilbert delegates the actual calculation of this function to an assistant: Eratosthenes, the cook, who in the kitchen is busy with infinitely many sieves to sieve the prime numbers from all natural numbers.
Now Hilbert moves the already established guests according to function p; so the guest in room #1 moves to room #2, the guest in room #2 moves to #3, etc. This makes room for the newly arrived guests. Now, Eratosthenes' sieving has as interesting by-product the creation of infinitely many infinite sequences.
Eratosthenes' first sieve has intercepted all multiples of 2; so we can make a function f_1 which lists all these numbers in ascending order (so f_1(1) = 4, f_1(2) = 6, f_1(3) = 8, etc). The guests who arrive in bus #1 (of course, the buses are also numbered) are allocated to rooms according to this function.
Eratosthenes' second sieve has intercepted all multiples of 3 that are not a multiple of 2 (the multiples of 2 are stuck in the first sieve, remember); so we can make a function f_2 which lists all these numbers in ascending order (so f_2(1) = 9, f_2(2) = 15, f_2(3)=21, etc.). The guests who arrive in bus #2 are allocated to rooms according to this function.
We can continue this process for any number. Eratosthenes' n-th sieve intercepts all multiples of the n-th prime which are not multiple of a lower-numbered prime. This constructs a function f_n which Hilbert uses for allocating the guests from bus #n. So passenger #m from bus #n gets room number f_n(m).
As you can see, all functions f_n are injective (1-to-1) but not surjective (onto), so they're all not bijective. We have created infinitely many non-bijective functions from the infinite set of natural numbers to itself.
The careful reader may also have noted that this leaves one room free: room #1. Together with the arrival of the Hilbert buses, a car came with a single guest from Laren, Netherlands. This guest, Brouwer, in his younger years had seen and supported the building of Hilbert's empire, but had come to doubt it could exist in the first place, so he came back to discuss with Hilbert about that. Of course, Hilbert gave him the first and biggest room in his hotel, where they would argue about the existence of the hotel.
Later, another anecdote would surface. Hilbert had a young English receptionist, fresh from hotel school, named Cleese. He didn't get along with Hilbert and some of his assistants - the German ones. The day after Brouwer arrived, he also put on the prank to stick an extra "2" on the door of Brouwer's hotel room.