OFFSET
1,2
COMMENTS
Self-inverse integer permutation: a(a(n))=n.
LINKS
PROG
Contribution from Franklin T. Adams-Watters, Apr 16 2009: (Start)
(PARI) invect(v, n, x)=for(i=1, n, if(v[i]==x, return(1))); 0
nextnew(v, n)=local(k); k=1; while(!R(n, k)||invect(v, n-1, k), k++); k
newvect(n)=local(v); v=vector(n); for(k=1, n, v[k]=nextnew(v, k)); v
R(n, m)=omega(n)==omega(m)&&n!=m||n==1&&m==1
newvect(80) (End)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jun 08 2004
EXTENSIONS
Description corrected by Franklin T. Adams-Watters, Apr 07 2009
Values through a(72) verified by [From Franklin T. Adams-Watters, Apr 16 2009]
STATUS
approved