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

Sequence which is related to the binary expansion of nnn and partition numbers

Number theoryCombinatorics

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 p(n)p(n)p(n) be A000041 i.e. the number of partitions of nnn (the partition numbers).

Let

ℓ(n)=⌊log⁡2n⌋\ell(n)=\left\lfloor\log_2 n\right\rfloorℓ(n)=⌊log2​n⌋

Let wt⁡(n)\operatorname{wt}(n)wt(n) be A000120 i.e. number of 111's in binary expansion of nnn (or the binary weight of nnn). Here

wt⁡(2n)=wt⁡(n),wt⁡(2n+1)=wt⁡(n)+1,wt⁡(0)=0\operatorname{wt}(2n)=\operatorname{wt}(n), \\ \operatorname{wt}(2n+1)=\operatorname{wt}(n)+1, \\ \operatorname{wt}(0)=0wt(2n)=wt(n),wt(2n+1)=wt(n)+1,wt(0)=0

Let a(n)a(n)a(n) be an integer sequence such that

a(n)=(2g(n)+1)2ℓ(n)−h(n),a(0)=0a(n) = (2g(n) + 1)2^{\ell(n)-h(n)}, \\ a(0) = 0a(n)=(2g(n)+1)2ℓ(n)−h(n),a(0)=0

where

g(n)=a(n−2ℓ(n)),h(n)=[g(n)=0]⋅0+[g(n)>0]⋅(wt⁡(g(n))−1)g(n) = a(n-2^{\ell(n)}), \\ h(n) = [g(n)=0]\cdot0+[g(n)>0]\cdot(\operatorname{wt}(g(n))-1)g(n)=a(n−2ℓ(n)),h(n)=[g(n)=0]⋅0+[g(n)>0]⋅(wt(g(n))−1)

Let b(n)b(n)b(n) be an integer sequence such that b(0)=0b(0)=0b(0)=0, b(n)>b(n−1)b(n)>b(n-1)b(n)>b(n−1) and it contain all numbers from the sequence a(n)a(n)a(n).

I conjecture that for n>0n>0n>0 we have b(p(n))=2n−1.b(p(n))=2^{n-1}.b(p(n))=2n−1.

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

upto(n) = my(v1); v1 = vector(n + 1, i, 0); for(i = 1, n, my(A = 2^logint(i, 2), B = v1[i - A + 1]); v1[i + 1] = (2 * B + 1) * A / 2 ^ if(B == 0, 0, hammingweight(B) - 1)); v1 = vecsort(v1)
my(v1, n = 15); v1 = upto(2 ^ n); for(i = 1, n + 1, print(v1[numbpart(i) + 1]))

UPD1: To reproduce the sequence b(n)b(n)b(n) through itself, use the following rule: if binary 1xyz1xyz1xyz is a term then so are 110xyz110xyz110xyz and 1XYZ1XYZ1XYZ where the last one is the same as 1xyz1xyz1xyz with rewrite 1→101 \to 101→10.

So here is a new prog:

b1(n) = my(A = n, B, wt = hammingweight(n), v1); v1 = []; for(i=1, wt, B = valuation(A, 2); v1 = concat(binary(2^(B+1)), v1); A \= 2^(B + 1)); fromdigits(v1, 2) \\ transforms 1xyz to 1XYZ
upto1(n) = my(A = 1, v1); while(numbpart(A) < n, A++); v1 = vector(n, i, i == 1); if(n > 1, v1[2] = 2); for(i = 3, A - 1, my(N1 = numbpart(i), v2); v2 = []; for(j = 1, N1 - 1, my(B = b1(v1[j])); if((logint(B, 2) + 1) == i, v2 = concat(v2, B))); my(N2 = numbpart(i - 2)); v2 = concat(vecsort(v2), vector(numbpart(i - 1) - N2, j, v1[N2 + j - 1] + 5*2^(i-3))); for(j=1, min(n - N1 + 1, numbpart(i+1) - N1), v1[N1 + j - 1] = v2[j])); v1
upto2(n) = my(i = 3, s, v1); v1 = [1]; if(n > 1, v1 = [[1], [2]]); s = sum(j=1, #v1, #v1[j]); while(s < n, my(v2); v2 = []; for(j=1, #v1, for(k=1, #v1[j], my(B = v1[j][k]); if((logint(B, 2) + hammingweight(B) + 1) == i, v2 = concat(v2, b1(B))))); v2 = concat(vecsort(v2), vector(#v1[i-2], j, v1[i-2][j] + 5*2^(i-3))); my(C = n - s); v1 = if(C > #v2, concat(v1, [v2]), concat(v1, vector(C, j, [v2[j]]))); s += #v2; i++); my(v3); v3=[]; for(i=1, #v1, v3 = concat(v3, v1[i])); v3

UPD2: Possibly simplest prog:

b2(n) = my(L = logint(n, 2), A = n); A-=2^L; L - if(A==0, 0, logint(A, 2)) - 1
b3(n) = my(A = n); n/2 + 2^(logint(n, 2) - 1)
upto3(n) = my(v0, v1, v2); v0 = [1, 2, 4, 6, 8, 12, 16, 20, 24, 26, 32]; v1 = vector(n, i, if(i <= #v0, v0[i])); v2 = [1, 2, 3, 5, 7, 11];  my(k = 6, j = 3, q = 0); for(i = 12, n, my(A = v2[j] + q); if(A >= v2[k-1], k++; v1[i] = 2^(k-1); j=k\2; q = 0; v2 = concat(v2, i), v1[i] = 2*b3(v1[A]) + 2^(k - 1); if((k - j - 2) >= b2(b3(v1[A+1])), j++; q = 0, q++))); v1

In this last program you can return v2 instead of v1 which gives you positions of powers of 222 in b(n)b(n)b(n) (that is, partition numbers).

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 · partitions · integer-sequences

Authors listed by the source : user231922

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : October 12, 2023

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