Permutation and its binary analog
Has 1 answer on MathOverflow, none accepted. It may be fully or partly answered there; read them before working on it.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
Let \(f(n)\) be A000045(n), i.e., Fibonacci numbers: \(f(n)=f(n-1)+f(n-2)\) for \(n>1\) with \(f(0)=0\) and \(f(1)=1\).
Let \(g(n)\) be A072649, i.e., \(n\) occurs \(f(n)\) times. The sequence begins with$$1, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7$$Here we also consider that \(g(0)=0\).
Let$$h(n)=n-f(g(n)+1)$$Claude Chaunier pointed out in his comment that
From OEIS we see \(f(g(n)+1)\) is the highest Fibonacci number \(\leqslant n\) and \(h(n)\) is how far \(n\) is from it.
So the binary analogs of these functions are: powers of \(2\) for \(f(n)\), \(\left\lfloor\log_2 n\right\rfloor\) for \(g(n)\) and \(n\) without the most significant bit for \(h(n)\).
Let \(a(n)\) be an integer sequence such that \(a(0)=0\), \(a(n)=n\) if \(n\) is Fibonacci number, otherwise$$a(n)=n - f(g(h(n)-1)) + [g(n)\operatorname{mod}2 = g(h(n)-1)\operatorname{mod}2]\cdot f(g(n)-2)$$I conjecture that \(a(n)\) is a permutation …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.