05.01.2013 Views

COMPUTATIONAL PROBLEMS IN ABSTRACT ALGEBRA.

COMPUTATIONAL PROBLEMS IN ABSTRACT ALGEBRA.

COMPUTATIONAL PROBLEMS IN ABSTRACT ALGEBRA.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Shen Lin Sequences which form integral bases 367<br />

method was suggested to me by Dr. R. L. Graham of the Bell Telephone<br />

Laboratories to whom I give my sincerest thanks here.<br />

Given a sequence S = {sl, s2, . . . , Sk, . . .} satisfying condition A.<br />

Assume that the integer js is known such that for all k *js, we have<br />

2sk 2 sk+l. Let P,(s) denote the set of all numbers which are representable<br />

as a sum of distinct terms taken from the first k terms {si, ss, . . ., Sk}<br />

of S, including zero. p,(S) may be computed recursively as follows :<br />

P,(S) = (0, Sl},<br />

&+1(s) = h(s) u{pk(s)+ {sk+l}}:<br />

where, as usual, A+B = {X 1 x = a+b, a c A, be B}.<br />

Suppose all integers from a through b (a a) belong to Pk(S) while a- 1<br />

and bf 1 do not. Then we call [a, b] an interval in P,(S) and define its<br />

length as bf 1 -a. For each k 3 j,, as soon as Pk(S) is computed, we<br />

determine the interval [Q, yk] in P,(S) having the longest length 1, (if<br />

there are two or more intervals with the same length, we pick the one with<br />

the smallest &) and compare it with sk+l. If lk -= sk.+1, we set k to k+ 1,<br />

and go on, repeating the above procedures. If lk * sk+l, we have proven<br />

that S is complete and the determination of the threshold of completeness<br />

is now a relatively simple matter. We continue to calculate P,(S) successively<br />

until sk+l 3 xk (xk may decrease as k increases), and when this<br />

happens, the threshold of completeness e(S) is then xk- 1.<br />

The justification for the above procedure is easily seen. When we find<br />

an interval [xk, &] in P,(S) such that sk+l e Ik = &-xk+ 1 with k a j,,<br />

we are guaranteed that all integers > x, belong to P(S). For &+1(S) will<br />

contain all integers in the interval [xk+sk+r, j&+sk+1] and hence all<br />

integers in the interval [&, &+ ++1], since xk + sk+l < yk + 1 andlthe intervals<br />

[xk, yk] and [xk+sk+l, yk+Sk+l] merge into one. By condition A, this<br />

merging will continue for ever since Ik+l = ykfl-Xk+i+l > yk+Sk+ixk+<br />

1 * 2sk+l* sk+Z. When s,&+l * xk, no further sk+i’s may be used<br />

to represent xk- 1, and since all integers == xk belong to P(S), xk- 1 is<br />

therefore the threshold of completeness for the sequence S.<br />

In writing a computer program to find the thresholds of completeness<br />

for sequences using the above procedure, the most efficient way to generate<br />

and store the Pk(s)‘s is of major concern. Two representations for numbers<br />

in P,(S) are used. First, in the characteristic function method, the set<br />

P,(S) is represented as a string of binary bits, the (i+ 1)th bit being a one<br />

if and only if the integer i belongs to Pk(S) and zero otherwise. Zero is<br />

considered to be in P,(s) and hence the first bit of the string is always a 1.<br />

Pk+l(S) is computed from P,(S) by shifting the entire bit string for P,(S)<br />

an amount equal to sk+l and logically or-ing it to the original bit string<br />

for P,(S). When the threshold of completeness is less than half a million,<br />

this method is very fast since all computations can be done in core. When<br />

the numbers in P,(S) get to be larger than the limit of space available, a<br />

truncated version for Pk(S) can be used effectively as long as the threshold<br />

is less than half the number of bits available. In the second method, Pk(S)<br />

is stored as a sequence of intervals [ai, bi] and Pk+l(S) is obtained from<br />

P,(S) by constructing the new sequence of intervals [ai+sk+l, bi+sk+l]<br />

and then merging the two sequences to produce the sequence of intervals<br />

for Pk+l(S). This method has the advantage that the number of intervals<br />

becomes relatively constant after a while although it grows almost like a<br />

power of two in the beginning. For large problems, the limit for storage is<br />

exceeded very rapidly and auxiliary storages have to be used. Using the<br />

interval method we have computed the threshold of completeness for the<br />

sequence of fourth powers S = (1, 16, 81, 256, . . .} to be 5,134,240.<br />

Note that if the characteristic function method were used, we would have<br />

to carry along a bit string of about 10 million bits. Various programming<br />

devices and techniques are employed in the program to reduce the running<br />

time but they will not be discussed here. Also, if Z;, = si+sa+ . . . +q is<br />

the largest number in Pk(S), the intervals are symmetric about +z,; i.e.<br />

if [ai, bi] is an interval in Pk(S), then [zk- bi, -&- ai] is also an interval.<br />

Observations like this help reduce the storage requirement for Pk(S) by a<br />

substantial amount although they do make the logic for producing Pk+l(S)<br />

from Pk(S) much harder. As is well known to computer programmers, it is<br />

always a difficult problem to find the proper balance between storage<br />

space, running time, and simplicity of programming logic, and this program<br />

is no exception.<br />

Having what we consider an efficient program to compute thresholds of<br />

completeness for sequences satisfying condition A, we turn next to a related<br />

problem. We say that a sequence S is essentially complete if all truncated<br />

sequences S, = {s,, s,+~, . . .} are complete. It is not difficult to see that<br />

all complete sequences generated by polynomials are essentially complete.<br />

A result of Roth and Szekeres [3] also guarantees that the sequence of<br />

primes, the sequence of squares of primes, etc., are essentially complete.<br />

Examples of complete sequences which are not essentially complete are the<br />

sequence of powers of 2, the Fibonacci sequence, and most Lucas sequences.<br />

* d A study of when Lucas sequences are essentially complete is being made<br />

by Stephen Burr, whose results will be published elsewhere. For essentially<br />

complete sequences, e(S,) exists for every n. Using the program, we were<br />

able to compute the thresholds of completeness for sequences such as<br />

the sequence of primes, the sequence of squares, the sequence of pseudoprimes<br />

(positive integers == 2 having at most 4 positive divisors), etc., for<br />

n up to a fairly large number. Some of the results obtained are briefly<br />

summarized in Tables 1 through 8 in Appendix A.<br />

From the thresholds of completeness obtained, we observe that the<br />

ratios u, E 1’3(&+J/s,, seem to settle down to a narrow region as n increases<br />

and that for the sequence of primes, this region is very close to 3. For the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!