\datethis @* Intro. Pepperdine's method for topswops. [Reference: {\sl Mathematical Gazette\/ \bf73} (1989), 131--133.] @d n 15 /* degree of perms; should be less than 16 */ @d maxl 1000 /* max level */ @c #include typedef struct {char p[16];} perm; /* this speeds it up by better than 2 */ perm a[maxl]; perm b[maxl]; char x[maxl]; main() { register int j,k,l,m; a[0].p[0]=1; m=l=0; tryit: k=++x[l]; if (k=m) { m=l; printf("%d:",m+1); for (j=0;j=0) goto tryit; } @*Index.