I think I have a new integer sequence for the OEIS (although please tell me if it seems insufficiently interesting). But first, a question: Is there a standard way to encode the cardinal directions as integers? I picked mine since it's both the standard clockwise N,E,S,W and because in this particular case it encodes the first three directions as 1,2,3. Encode up=1, right=2, down=3, left=4. The sequence is the directions of travel of a Hilbert curve as it leaves the origin. I rather arbitrarily used this as the shape of the second iteration. Here again, maybe someone can tell me if there's a more conventional form. p m l k o n i j b c h g a d e f ^ Given these two conventions, the sequence would begin: 1,2,3,2,2,1,4,1,2,1,4,4,3,4,1,... [a->b c d e f g h i j k l m n o p] Can somebody point me at the right vocabulary for thinking about the mappings of 1234 to NESW? It's rather arbitrary, and if your compass is rotated from mine so that you think 2341=NESW, 3412=NESW and 4123=NESW, you'll still get a Hilbert curve, but if you use 1324=NESW, your lines won't connect when you use my sequence. So, there's a relationship inherent in those rotations such that 3=-1 and 2=-4, and that makes me think that group theory ought to be involved. What about sequences of symbols which are totally, er, unrelated? Unordered? That is, assume I have a sequence a,b,c,b,b,d,a that I consider equivalent to the set of all sequences f(a),f(b),f(c),f(b),f(b),f(d),f(a) in which f() is a bijection from {a,b,c,d}->{a,b,c,d}. (In other words, totally arbitrarily chosen symbols.) Would it make sense to want an Online Encyclopedia of such sequences in which the symbols don't have a relationship like the integers do? Or is there a way to canonicalize such sequences so that we can express them uniquely as integers? Perhaps we could force the convention that the symbols must be numbered in order, so that 1 is always the first number to appear in the sequence and that the next non-1 symbol must be 2, etc.? (Sorry if this is an excessivly elementary subject to be asking about)