OFFSET
1,4
COMMENTS
Polygons that differ by rotation or reflection are counted separately.
T(1,0)=0 by convention.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..55 (rows 1..10)
Ludovic Schwob, Illustration of T(4,k), k=0..3
Wikipedia, Winding number
FORMULA
T(2*n,2*n-1) = 1 and T(2*n+1,2*n) = 0 for all n>=1.
T(n,n-2) = 4^(n-1)-2*n for all n>=2.
EXAMPLE
Triangle begins:
0;
0, 1;
6, 10, 0;
296, 391, 56, 1;
21580, 28298, 6132, 246, 0;
PROG
(PARI)
T(n)={
local(Cache=Map());
my(dir(p, q)=if(p<n, if(q>=n&&q<p+n, 'x, 1), if(q<n&&q>p-n, 1/'x, 1)));
my(recurse(k, p, b) = my(hk=[k, p, b], z); if(!mapisdefined(Cache, hk, &z),
z = if(k==0, p<>n, sum(q=1, 2*n-1, if(!bittest(b, q) && (q-p)%n, dir(p, q)*self()(k-1, q, b+(1<<q)) )));
mapput(Cache, hk, z)); z);
my(p=recurse(2*n-1, 0, 0));
vector(n, i, polcoef(p, i-1)/if(i==1, 2, 1))
}
{ for(n=1, 6, print(T(n))) } \\ Andrew Howroyd, May 14 2021
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Ludovic Schwob, Apr 12 2021
EXTENSIONS
a(22)-a(36) from Andrew Howroyd, May 14 2021
STATUS
approved