Sequence generating idea

David Wilson davidwwilson at comcast.net
Fri Mar 28 20:14:23 CET 2008


Here is an interesting way to (try to) generate integer sequences:

Let S be a set of integers.  Let S+n = {S+n : n in S}

Now peform the following algorithm

n = 0;
T = empty set;
a = empty sequence;
for (n = 0 to inf by 1) {
 if ( T intersect S+n = empty set ) {
  T = T union S+n;
  Append n to a;
 }
}

What is a if S = primes? squares? cubes? powers of 2? any other ideas?






More information about the SeqFan mailing list