In A005316 why is a[2] not 2? i.e. the river goes through 1 then 2, or the river goes through 2 then 1. Jon Perry perry at globalnet.co.uk http://www.users.globalnet.co.uk/~perry/maths BrainBench MVP for HTML and JavaScript http://www.brainbench.com