Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Another (unique) algorithm for the A329369

Number theoryCombinatoricsTheoretical computer science

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

  • Let a(n)a(n)a(n) be A329369 (i.e, number of permutations of 1,2,...,m{1,2,...,m}1,2,...,m with excedance set constructed by taking m−im-im−i (0<i<m0 < i < m0<i<m) if b(i−1)=1b(i-1) = 1b(i−1)=1 where b(k)b(k−1)⋯b(1)b(0)b(k)b(k-1)\cdots b(1)b(0)b(k)b(k−1)⋯b(1)b(0) (0⩽k<m−10 \leqslant k < m-10⩽k<m−1) is the binary expansion of nnn). Here
a(2m(2k+1))=∑j=0m(m+1j)a(2jk),a(0)=1a(2^m(2k+1)) = \sum\limits_{j=0}^{m}\binom{m+1}{j}a(2^jk), \\ a(0) = 1a(2m(2k+1))=j=0∑m​(jm+1​)a(2jk),a(0)=1
  • Let ν2(n)\nu_2(n)ν2​(n) be A007814 (i.e., number of trailing zeros in the binary expansion of nnn). Here
ν2(2n+1)=0,ν2(2n)=ν2(n)+1\nu_2(2n+1)=0, \\ \nu_2(2n) = \nu_2(n) + 1ν2​(2n+1)=0,ν2​(2n)=ν2​(n)+1
  • Here is the conjectured algorithm to calculate a(2n)a(2n)a(2n) without using binomial coefficients.

  • Start with A=2n,B,i=1A=2n, B, i=1A=2n,B,i=1 and reserve 555 vectors t1,t2,t3,t4,t5t_1, t_2, t_3, t_4, t_5t1​,t2​,t3​,t4​,t5​.

  • Then while A>0A>0A>0 apply B:=ν2(A)B:=\nu_2(A)B:=ν2​(A), t1,i=Bt_{1, i} = Bt1,i​=B, A:=2B⌊A2B+1⌋A:=2^B\left\lfloor\frac{A}{2^{B+1}}\right\rfloorA:=2B⌊2B+1A​⌋, i:=i+1i:=i+1i:=i+1. Also, let #ti\#t_i#ti​ be a length of vector tit_iti​.

  • After that for iii from 111 to #t1\#t_1#t1​ apply A:=t1,iA:=t_{1,i}A:=t1,i​, t2t_2t2​ is a vector of length A+1A+1A+1 with elements t2,j=0t_{2,j}=0t2,j​=0. Also, if i=1i=1i=1, then t3t_3t3​ is a vector of length A+1A+1A+1 with elements t3,j=1t_{3,j}=1t3,j​=1. After that, for all iii we have t4=t3t_4 = t_3t4​=t3​.

  • After that (and staying in the cycle for iii) for jjj from 222 to A+1A+1A+1 and for kkk from 111 to 222 apply t2,k:=t3,j+k−2t_{2,k} := t_{3,j+k-2}t2,k​:=t3,j+k−2​. Then (staying in the cycle for jjj) for kkk from 333 to jjj apply t2,k:=t5,1+(k−1)t5,2+∑s=3k−1t5,st_{2,k} := t_{5,1} + (k-1)t_{5,2} + \sum\limits_{s=3}^{k-1} t_{5, s}t2,k​:=t5,1​+(k−1)t5,2​+s=3∑k−1​t5,s​. But as you can see, t5t_5t5​ still was not defined. It's ok for j=2j=2j=2. After that (and staying in the cycle for jjj) apply t5:=t2t_5 := t_2t5​:=t2​, t4,j:=t2,1+jt2,2+∑s=3jt2,st_{4,j} := t_{2,1} + jt_{2,2} + \sum\limits_{s=3}^{j} t_{2, s}t4,j​:=t2,1​+jt2,2​+s=3∑j​t2,s​.

  • After that (while you left cycle for jjj and staying in the cycle for iii) if i<#t1i<\#t_1i<#t1​ then t3t_3t3​ is a vector of length t1,i+1+1t_{1,i+1}+1t1,i+1​+1 with elements t3,j=t4,j+t1,i−t1,i+1t_{3,j} = t_{4,j+t_{1,i}-t_{1,i+1}}t3,j​=t4,j+t1,i​−t1,i+1​​.

  • Finally, a(2n)a(2n)a(2n) is the same as sum of all elements of the vector t2t_2t2​ plus At2,2At_{2,2}At2,2​.

Here is the PARI/GP program to check it numerically:

a(n) = if(n == 0, 1, my(A = valuation(n, 2), B = n >> (A+1)); sum(j=0, A, binomial(A+1, j)*a(B << j)))
a1(n) = {
my(A = (n+1) >>
valuation(n+1, 2) - 1);
if(A == 0, 1, 
my(B, v1, v2, v3, v4, v5);
v1 = [];
while(A > 0,
B = valuation(A, 2);
v1 = concat(v1, B);
A = (A >> (B+1)) << B);
v1 = Vecrev(v1);
for(i=1, #v1,
A = v1[i];
v2 = vector(A+1, j, 0);
if(i==1,
v3 = vector(A+1, j, 1));
v4 = v3;
for(j=2, A+1,
for(k=1, 2,
v2[k] = v3[j+k-2]);
for(k=3, j,
v2[k] = v5[1] + (k-1)*v5[2]
+ sum(s=3, k-1, v5[s]));
v5 = v2;
v4[j] = v2[1] + j*v2[2]
+ sum(s=3, j, v2[s]));
if(i < #v1,
v3 = vector(v1[i+1]+1, j,
v4[j+v1[i]-v1[i+1]])));
vecsum(v2) + A*v2[2])
}
test(n) = a(n) == a1(n)

Is there a way to prove it?

Statement and context adapted from MathOverflow · user231922

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

Topics : nt.number-theory · co.combinatorics · sequences-and-series · algorithms · recurrences

Authors listed by the source : user231922

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : June 30, 2024

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni