I can't find much on the internet about this, but apparently vectors of naturals are called hyperscalars. It's not hard to bijectively map naturals to 2D hyperscalars and with that to prove that any-dimensional hyperscalars are countable and thus bijectively mappable to naturals.
More specifically, I'm interested in mapping naturals to 2D hyperscalars, and to do so I've defined a hyperscalar sequence $a_n$ such that:
$a_0 = (0, 0)$
$a_{n+1} = f(a_n)$
where $f((a,b)) = (a+1, max(0,b-1))$ if $a+b$ is even, else $(max(0,a-1),b+1)$
If I'm asked the $n$-th term of the sequence I'd have to compute it recursively, but is there an "algebraic" (can't seem to think of a better term, sorry) formula that computes that specific term without necessarily computing the others? Although a different, but related, question, is there an algebraic way to do the opposite (i.e. take a hyperscalar $v$ and return $n$ such as $a_n = v$)?