While studying the countability of sets, I came across the following problem (In Methods of Real Analysis, Goldberg) : Show that Pn=set of polynomials of degree n (with all coefficients being integers and n fixed positive integer) is countable..
It was hinted to use Induction,which of course is easy to do.
I tried the following:
Let the coefficients of the terms be made into a sequence (a0,a1,a2,a3,a4...,an). e.g (2,6,1,9,3) gives the constant term as 2,coefficient of x as 6 ,of x^2 as 1 etc...
Now write a string 10 [a0] 010 [a1] 010 [a2] 010...010 [an]01 i.e enclose each number ai in the stings '010' to form a bigger number 10[a0]010 [a1]010[a2]010...010[an]01.
If some integer ai = [-x], is negative , them enclose it in 0100[x]010 rather than 010[x]010.
So basically what i tried was to assign a unique natural number to each sequence (a0,a1,a2,a3,a4...,an) and use it to show that Pn is countable. Is this correct?