On 11/09/2026 23:36, 'Ruud H.G. van Tol' via SeqFan wrote:
>
> [0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 2, 1, 0, 0, 1, 1, 2, 1, 0, 0, 1, 0,
> 3, 2, 1, 0, 0, 1, 1, 1, 3, 2, 1, 0, 0, 0, 1, 0, 4, 3, 2, 1, 0, 0, 0, 1,
> 1, 1, 4, 3, 2, 1, 0, 0, 1, 2, 1, 0, 5, 4, 3, 2, ...]
It already looks more interesting if the terms are not limited to single
digits:
? { my(t=List(),w=120);for(b=1,w,my(r=List());
for(i=0,w,listput(~r,if(b<2,0,!i,[0],digits(i,b))));
listput(~t,concat(r))); for(i=1,#t,t[i]=t[i][1..w]); t=Mat(Vec(t)~);
printp(t); my(r=List()); for(n=1,w,for(c=1,n,listput(~r,t[n+1-c,c])));
Vec(r)[1..w*2] }
[...]
[0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 2, 0, 0, 0, 1, 2, 1, 1, 0, 0, 1, 2,
3, 0, 1, 0, 0, 1, 2, 3, 1, 1, 1, 0, 0, 1, 2, 3, 4, 0, 1, 0, 0, 0, 1, 2,
3, 4, 1, 1, 1, 0, 0, 0, 1, 2, 3, 4, 5, 0, 1, 2, 1, 0, 0, 1, 2, 3, 4, 5,
1, 1, 1, 2, 0, 0, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 0, 1, 0, 0, 1, 2, 3, 4,
5, 6, 1, 1, 1, 1, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 1, 1, 0,
0, 1, 2, 3, 4, 5, 6, 7, 1, 1, 1, 1, 2, 2, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7,
8, 0, 1, 2, 3, 0, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 1, 1, 1, 1, 1, 2,
1, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 1, 0, 1, 0, 0, 1,
2, 3, 4, 5, 6, 7, 8, 9, 1, 1, 1, 1, 1, 2, 2, 0, 1, 0, 0, 1, 2, 3, 4, 5,
6, 7, 8, 9, 10, 0, 1, 2, 3, 4, 0, 2, 1, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8,
...]
as then the table has more structure.
-- Ruud