4
$\begingroup$

Let $a(n,m,k)$ be an integer sequence such that $$a(n,m,k)=\sum\limits_{i=0}^{n}{n\brace i}(m-k)^{n-i}\prod\limits_{j=0}^{i-1}(kj+1)$$ Here ${n\brace k}$ is the Stirling number of the second kind.

There are many sequences in the OEIS that are special cases of a given sequence family:

Let $$\ell(n)=\left\lfloor\log_2 n\right\rfloor$$ $$f(n)=n-2^{\ell(n)}$$ $$\operatorname{wt}(2n+1)=\operatorname{wt}(n)+1, \operatorname{wt}(2n)=\operatorname{wt}(n), \operatorname{wt}(0)=0$$ $$T(n,k)=\left\lfloor\frac{n}{2^k}\right\rfloor\operatorname{mod}2$$ Here $f(n)$ is the same as $n$ without the most significant bit, $\operatorname{wt}(n)$ is the binary weight of $n$ and $T(n,k)$ is the $(k+1)$-th bit from the right side in the binary representation of $n$.

Let $b(n,m,k)$ be an integer sequence such that $$b(n,m,k)=m(\ell(n)-\operatorname{wt}(n)+2)b(f(n),m,k)+\sum\limits_{j=0}^{\ell(n)} k(1-T(n,j))b(f(n)+2^j(1-T(n,j)),m,k)$$ Here $b(n,1,1)$ is A329369.

Let $s(n,m,k)$ be an integer sequence such that $$s(n,m,k)=\sum\limits_{j=0}^{2^n-1}b(j,m,k)$$ I conjecture that $$s(n,m,k)=a(n+1,m,k)$$ Here is the PARI prog to verify this conjecture:

a(n, m, k) = sum(i=0, n, stirling(n, i, 2)*(m-k)^(n-i)*prod(j=0, i-1, k*j + 1))
s(n, m, k) = my(v, v1); v=vector(2^n, i, 0); v[1]=1; for(i=1, #v-1, my(L=logint(i, 2), A=i-2^L); v[i+1]=m*(L - hammingweight(i) + 2)*v[A+1] + sum(j=0, L, my(B=bittest(i, j)); k*(1-B)*v[A + 2^j*(1-B) + 1])); v1=[1]; for(i=1, n, v1=concat(v1, sum(j=0, 2^i-1, v[j+1]))); v1
[n, m, k] = [10, 1, 1]
x = s(n, m, k)
x1 = vector(n+1, i, a(i, m, k))
test = x==x1

Is there a way to prove it?

$\endgroup$

0

You must log in to answer this question.