Let C be the set of all finite sets of prime numbers. show C is countable.
tried to do this by creating a bijection f : C -> N where X is an element of C and f(X)=the product of all elements in X.
figured it’s injective by looking at sets A and A’ which are elements of C and defining A’ as A-{p} where p is some prime number. from there A≠A’ and f(A)≠f(A’) because p|f(A) but p does not |f(A’). so this function is injective.
next, surjective: tried to argue this by saying let f(A)=b=the product of all elements in A. since b is some natural number and any natural number can be expressed as a product of n many prime numbers it’s also surjective. realized there is an issue with this though since we are looking at sets, not sequences. two of the same prime would not appear in the same set so numbers like 4 (2*2) cause it to fail.
theoretically i would have confirmed it is injective and surjective, therefore there exists a bijection between C and N so C is countable. however, this proof clearly does not work.
how else could i create a bijection or otherwise prove this? thanks.