OFFSET
1,6
PROG
(PARI)
Dual(v)={my(u=vectorsmall(v[1]), k=0); forstep(i=#u, 1, -1, while(k<#v&&v[k+1]>=i, k++); u[i]=k); u}
OrderCycs(v)={my(t=vector(#v), L=List()); for(i=1, #v, my(c=0, j=i); while(!t[j], t[j]=1; j=v[j]; c++); if(c, listput(L, c))); Vec(L)}
a(n)={my(u=vecsort([Vecsmall(Vecrev(p)) | p<-partitions(n)])); my(v=vector(#u, i, vecsearch(u, Dual(u[#u+1-i])))); #Set(OrderCycs(v))} \\ Andrew Howroyd, Sep 16 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(31)-a(50) from Andrew Howroyd, Sep 16 2019
More terms from Sean A. Irvine, Oct 20 2020
STATUS
approved