By the way, looking at David Wilson's table, http://www.research.att.com/~njas/sequences/b003313.txt I noticed that its index is shifted by 1. It looks like 1 1 2 2 3 2 4 3 ... while it should be 1 0 2 1 3 2 4 2 5 3 ... Alec