-
Let a(n,m) be the number of partitions of mn−1 into powers of m. In other words,
a(n,m)=[zmn−1]k⩾0∏1−zmk1
-
Let
R(n,m,q)=j=0∑m(q+1)−1R(n−1,m,j),R(0,m,q)=1
I conjecture that R(n,m,0)=a(n+1,m)
Here is the PARI/GP prog to check it numerically:
a(n, q)=local(A=Mat(1), B); if(n<0, 0, for(m=1, n+1, B=matrix(m, m); for(i=1, m, for(j=1, i, if(j==i, B[i, j]=1, if(j==1, B[i, j]=(A^q)[i-1, 1], B[i, j]=(A^q)[i-1, j-1])); )); A=B); return(A[n+1, 1]))
R_upto(n, m)=my(v1, v2, v3); v1=vector(m^(n+1), i, 1); v2=v1; v3=vector(n+1, i, 0); v3[1]=1; for(i=1, n, for(q=0, m^(n-i), v2[q+1]=sum(j=0, m*(q+1)-1, v1[j+1])); v1=v2; v3[i+1]=v1[1];); v3
test(n, m)=R_upto(n, m)==vector(n+1, i, a(i, m))