Suppose we want to code a sequence of numbers that are all less than 1000. One easy way to do it, is to write numbers in base 1000 notation, and just use the sequence. Thus, if we want to code a sequence of numbers all less than 9, we can do it this way:
21173758 (no initial 0s).
That almost works, but how do we tell which is the

th number in the sequence? We have to count off members of the sequence, which itself seems to require using a sequence, which we don't yet have.
The way we'll solve this problem is to use
1221314753677588 instead of just 21173758, putting the numbering into the sequence.
So to code a sequence of length at most

of numbers that are at most

, we can do it using a number thought of as written in base

.
To work base 10, we would be interested in powers of 10, and so we'd need a way to say that a number is a power of 10. Even that isn't so easy. But, it
is easy for powers of a prime number

:
A number is a power of

if and only if it and all of its divisors except 1 are divisible by

. So, we only work with numbers base

for prime

.
Given any sequence of numbers at most

of length at most

we find two numbers: a prime

bigger than

and the number

that codes the seqence as indicated above, in numbers written base

. We then need a function

which is definable in the language of arithmetic and whose value is the

th member of the sequence coded by

base

. That is Gödel's beta function, and it is what we will spend the next class writing out in some detail.
p. 177
-Function Lemma. There is a function

with the following properties:
%RENDERLIST{"empty"}%
- a. For every sequence
over
there are
such that for all
- b.
is definable in the language of arithmetic, that is, there is a formula
such that for all
,
Proof: Let

be a prime number bigger than

. Let

be

if and only if there are

such that
%RENDERLIST{"empty"}%
- 1.
- 2.
- 3.
- 4.
is an even power of
, that is,
is a square and for all
such that
divides
,
divides
.
-- ProfessorShaughanLavine? - 30 Mar 2005