|
EXAMPLE
|
Let f(p) = list of Legendre(p|q) for q = 3,5,7,11,13,...
Then f(3), f(5), f(7), f(11), ... are:
p=3: 0, -1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1, -1, 1, -1, ...
p=5: -1, 0, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, -1, -1, -1, 1, 1, -1, 1, -1, 1, -1, 1, ...
p=7: 1, -1, 0, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1, 1, 1, 1, -1, -1, -1, -1, -1, 1, -1, ...
p=11: -1, 1, 1, 0, -1, -1, 1, -1, -1, -1, 1, -1, 1, -1, 1, -1, -1, -1, -1, -1, 1, 1, 1, ...
p=13: 1, -1, -1, -1, 0, 1, -1, 1, 1, -1, -1, -1, 1, -1, 1, -1, 1, -1, -1, -1, 1, -1, -1, ...
p=17: -1, -1, -1, -1, 1, 0, 1, -1, -1, -1, -1, -1, 1, 1, 1, 1, -1, 1, -1, -1, -1, 1, 1, ...
p=19: 1, 1, -1, -1, -1, 1, 0, -1, -1, 1, -1, -1, -1, -1, -1, 1, 1, 1, 1, 1, 1, -1, -1, ...
p=5 is the first list that begins with -1, so a(0) = 5,
p=7 is the first list that begins 1, -1, so a(1) = 7,
p=19 is the first list that begins 1, 1, -1, so a(2) = 19.
|