A092297 vs A106512

Brendan McKay bdm at cs.anu.edu.au
Sat Jun 4 03:54:26 CEST 2005


* Brendan McKay <bdm at cs.anu.edu.au> [050604 11:44]:
> 
> In my opinion, keeping the loop is more natural.  You are counting
> sequences  c[0],c[1],...,c[n-1]  where, for each i,
>    A.  c[i] \in {1,2,...k}
>    B.  c[i] \ne c[(i+1) mod n]
> At the moment you are discarding condition B only in the case n=0,
> which does not appear natural to me.

Correction:  I meant to say
  "you are discarding condition B in the case n=1"

Brendan.





More information about the SeqFan mailing list