OFFSET
0,3
LINKS
Niccolò Castronuovo, On the number of fixed points of the map gamma, arXiv:2102.02739 [math.NT], 2021.
PROG
(PARI) incr(m, nn, vincr) = if ((vincr[1]<nn) && (vincr[2]<nn), m[vincr[1]+1, vincr[2]+1]++); m;
tabl(nn) = {my(m = matrix(nn, nn), istep=0, vstep, nvstep); for (istep=0, nn, if (istep==0, vstep = [[0, 0]], vstep = nvstep); nvstep = List(); for (i=1, #vstep, my(step=vstep[i]); m = incr(m, nn, step); if (istep, listput(nvstep, [step[1]+step[2], step[2]])); listput(nvstep, [3*step[1]+1-2*step[2], 2*step[1]+1-step[2]]); ); ); m; } \\ A341150
lista(nn) = my(m=tabl(nn)); vector(nn, i, vecsum(vector(i, k, m[i, k])));
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Feb 06 2021
STATUS
approved