# Bijection for algebraic numbers

Is there a bijective function $f(n)$, where $n \in \mathbb{N}$, which enumerates all algebraic numbers? Is it possible to define such function?

-
@GitGud: that doesn't deal with each polynomial having a number of roots, some of them being the same, and different polynomials having the same roots. – Ross Millikan Apr 17 '13 at 19:33
@RossMillikan I had just realised that. – Git Gud Apr 17 '13 at 19:34

HINT: Given an equation of the form $a_nx^n + a_{n-1}x^{n-1} + \cdots + a_1x+a_0=0$, where each of the $a_i$ are integers, define the "index" of this equation to be $|a_n| + |a_{n-1}| + \cdots +|a_1|+|a_0|+n$.
Unless I'm overlooking something, you're providing a hint to the proof that there is a bijection between the set of algebraic numbers and $\Bbb N$, but not actually a hint to how to find such a bijection. $\textbf{Edit:}$ I just noticed the OP also asked if there is such a bijection. I'll leave my comment here anyway so it's clear that this is a partial answer. – Git Gud Apr 17 '13 at 19:35