19

This question came up when I was graphing the function $$f(x)=\sum_{n=1}^\infty\frac{(-1)^n}{n^2}H(\{x\} - \{\varphi n\}),$$ where $\{x\}$ is the fractional part of $x$, $\varphi=(\sqrt5+1)/2\approx 1.618$ is the golden ratio, and $H$ is the Heaviside step function. (We could also use $(\sqrt5-1)/2$; modulo $1$, it's the same.) The graph looks like this: draw_jump_example.png

I was just trying to draw a nice-looking visual for another question. But something interesting jumps out in the graph!

The question

It looks a lot like $f(\varphi^-)=\frac14$ and $f(\varphi^+)=-\frac34$. However, more careful numerical work shows that we don't have an exact equality. Instead, $f(\varphi^-)\approx\frac14-1.94\times10^{-5}$. So the question is, why is it so close?

Moreover, why does $f(3\varphi^-) \approx -\frac{8}{11}$ and $f(4\varphi^-) \approx \frac15$ with similarly small errors?

What I'd like

The dream would be some closed form like $f(k\varphi^-)=\frac{p(k)}{q(k)}+g(k)$ for nice functions $p,q:\mathbb N\to\mathbb N$ and $g:\mathbb N\to\mathbb R$, where we can see that $q(k)$ and $g(k)$ are small for $k=1,3,4$, for some satisfying big-picture reason.

Other potential forms of partial explanation might be:

  • A formula to accelerate the defining series of $f$, with truncation errors that are $o(n^{-1})$, especially if this series can be truncated to recover our $k=1,3,4$ results.
  • A not-so-nice function $g(k)$ that nonetheless admits satisfying bounds.
  • An argument that $f$ must take such approximately-simple values for several small $k$, even if we don't have a constructive argument to find those $k$. But in this case, I would really want the argument to be quantitative enough that it's no longer surprising to see three small $q=4,11,5$ with tiny errors like $10^{-5}$, and/or partial fraction convergents with such large denominators.
  • An exact transform or functional equation relating $f$ to some other function where the above explanations are possible.

I have no strategy to accomplish any of this. I have a vague intuition that as $n$ becomes large, comparably large ranges of even and odd terms of $f(x)$ become closer to uniform distributions, so it's no surprise that they would start to cancel out in some sense. But even if that intuition is formalized, it's hard to see how it could yield such close approximations.

In any case, I'll add some more advanced tags to this question, in case those methods have some application.

Appendix

Here's my latest numerical evidence, reproducing findings by anankElpis and Michael Lugo in the comments. Using JuliaIntervals for interval arithmetic and adding terms up to $n=10^8$, we have:

$$f(\varphi^-) \in [0.249980594, 0.249980615] = \frac14 - 1.9396\times10^{-5} \pm 10^{-8}$$ $$f(3\varphi^-) \in [-0.727287914, -0.727287893] = -\frac{8}{11} - 1.5177\times10^{-5} \pm 10^{-8}$$ $$f(4\varphi^-) \in [0.1999785740, 0.1999785941] = \frac15 - 2.1416\times10^{-5} \pm 10^{-8}$$

Note that the worst-case error of $10^{-8}$ from truncating the series dominates the much smaller errors from floating-point rounding, or from the occasional $n$ term where I can't confidently evaluate $H()$.

In terms of continued fractions, abusing notation to allow for my computation's uncertainty in the last convergent:

$$f(\varphi^-) = \cfrac{1}{4+\cfrac{1}{[3220, 3223] + \cdots}}$$ $$f(3\varphi^-) = \cfrac{1}{1+\cfrac{1}{2+\cfrac{1}{1+\cfrac{1}{2+\cfrac{1}{[543, 544]+\cdots}}}}}$$ $$f(4\varphi^-) = \cfrac{1}{5+\cfrac{1}{[1866, 1868] + \cdots}}$$

Chris Culter
  • 27,415
  • 3
    From direct calculation, it looks like $f(\varphi)\approx-\frac34-1.9\cdot10^{-5}$. Here is a desmos graph showing $f(\varphi)+\frac34$ (I modified the formula slightly to make it easier to calculate, but it's easily shown to be equivalent.) – anankElpis Mar 23 '25 at 00:49
  • 2
    Via Fourier series, $f(x)=-\frac{\pi^2x}{12}+\sum\limits_{n\in\Bbb Z/0}\frac {i\left(e^{-2\pi i k x}-1\right) \operatorname{Li}_2\left(-e^{2 \pi \varphi i k}\right)}{2\pi k}$, but it may not have a closed form. – Тyma Gaidash Mar 24 '25 at 01:48
  • 1
    From direct computation it also appears that $f((3\phi-1)^-) \approx -8/11$ and $f((4\phi-2)^-) \approx 1/5$, and again the approximations are off by on the order of $10^{-5}$. No idea why this would hold, though. – Michael Lugo Apr 14 '25 at 18:49
  • 1
    Using $\varphi$ to denote $\frac{\sqrt 5 - 1}{2}$ (instead of $\frac{1+\sqrt 5}{2}$) and calling it "the golden ratio" is like using $\pi$ to denote $6.2831\ldots$ (instead of $3.1415\ldots$) and calling it the "archimedes constant". – jjagmath Apr 15 '25 at 15:27
  • @jjagmath Okay, I'll change it to a plus sign and write more curly braces where necessary. – Chris Culter Apr 15 '25 at 18:07
  • 1
    The set of $n$ which you’re summing over is one more than the Beatty sequence of $\phi$ and which has some nice structure related to the Fibonacci numbers. Maybe that might help get an exact solution or have a reasonable approximation? – Eric Apr 19 '25 at 01:01
  • 1
    A lot of the identities/relations here seem potentially useful. https://franklin.dyer.me/post/180 – Eric Apr 19 '25 at 01:14

1 Answers1

5

I have tried to give a rigorous justification for this phenomenon. Numerical experiments suggest that the value
$f(\phi^-)\approx \tfrac14$ is a consequence of the quasi‐periodic structure of the Fibonacci word (see https://en.wikipedia.org/wiki/Fibonacci_word), which forces extensive term-by-term cancellation in the series, already from its very beginning.

A full proof still eludes me and may take considerable time (if it is possible at all), so I gave up, but I would like to record the evidence and heuristics I have gathered.


1. Setting

Let $\phi=(\sqrt5-1)/2$ and define for $n\ge 2$ $$ \varphi_n=\{n\phi\},\qquad s_n=\begin{cases} L,&\text{if }\varphi_n<\phi,\\[4pt] R,&\text{if }\varphi_n>\phi. \end{cases} $$

The sequence $s=s_2s_3s_4\dots$ is the Fibonacci word

$$ s=LRLLRLRLLRLLRLRLLRLRLLRLLRLRLL\dots, $$

the unique fixed point of the substitution

$$ L\mapsto RL,\qquad R\mapsto L. $$

Define the partial sums

$$ f_N=\sum_{\substack{2\le n\le N\\ s_n=L}}\frac{(-1)^n}{n^{2}},\qquad g_N=\sum_{\substack{3\le n\le N\\ s_n=L}}\frac{(-1)^n}{n^{2}}\;(=f_N-\tfrac14),\qquad g=\lim_{N\to\infty}g_N. $$

Numerically, $$ f_2=\tfrac14,\qquad f_{14}=0.2507734424,\qquad f_{44}=0.2499905489\dots, $$ so $g_N$ is already smaller than $10^{-4}$ for modest $N$. I did this calculation with GMP library.


2. Cancellation mechanisms inside the Fibonacci word

We have that in the Fibonacci word

(a) An $R$ is always isolated: the pattern is $\dots LRL \dots$.

(b) An $L$ is either isolated $\dots RLR\dots$ or appears in a pair $\dots RLLR\dots$.

Pairs $LL$ are especially useful, because for $s_ns_{n+1}=LL$ $$ \frac{(-1)^n}{n^{2}}-\frac{(-1)^n}{(n+1)^{2}} $$ (or its negative) occurs in $g$. By the mean value theorem $$ \Bigl|\frac{(-1)^n}{n^{2}}-\frac{(-1)^n}{(n+1)^{2}}\Bigr| =\frac{1}{n^{2}}\Bigl(1-\frac{1}{(1+\tfrac1n)^{2}}\Bigr)\le\frac{2}{n^{3}}. $$ Hence all pairs with $n\ge10$ contribute at most $2/300\approx0.0067$ to $|g|$.

In the first $46\,368$ letters, $61.80\%$ are $L$. If we delete every $R$ and every pair $LL$, only $14.59\%$ of the letters remain (isolated $L$). Replacing each $R$ by $O$ and each $LL$ by $OO$ yields

$$ OOOOOLOOOOOOOLOOOOLOOOOOOOLOOOOOOOLOOOOLOOOOOOOLOOOO, $$

whose contribution to $g$ seems to be small.

More generally, whenever the pattern $LO^{2k}L$ occurs with $k\in\mathbb{N}$, $$ \Bigl|\frac{(-1)^n}{n^{2}}+\frac{(-1)^{n+2k+1}}{(n+2k+1)^{2}}\Bigr| =\frac{1}{n^{2}}\Bigl(1-\frac{1}{(1+\tfrac{2k+1}{n})^{2}}\Bigr) \le\frac{4k+2}{n^{3}}. $$


3. Recursive elimination scheme

We will collect those cancelling pairs recursively. We consider the Fibonacci word. At Step 0 we remove all words R and LL replacing by O and OO. We collect all starting indices $n$ with $n> 4$ from the words $s_ns_{n+1}=LL$ in a set $\Omega_0$.

At each step $k\ge0$:

  • Step $k$.
    Remove every block $s_n\dots s_{2k+1}=LO^{2k}L$ beginning at position $n>2k$,
    record its starting index in the set $\Omega_k$,
    and replace the block by $O^{\,2k+2}$.

After step $2$ ($LL$ and $LOOOOL$ removed) only $3.45\%$ of the original $46\,368$ letters survive;
After step $10$ the proportion falls to $0.82\%$;
After step $376$ only $26$ letters remain.

If $\Omega_k=\{n_1<n_2<\dots\}$, If we assume that $n_j+2k<n_{j+1}$, then for $k\geq 1$ $$ \Bigl|\sum_{n\in\Omega_k}\frac{(-1)^n}{n^{2}} +\frac{(-1)^{n+2k+1}}{(n+2k+1)^{2}}\Bigr| \le\sum_{n\in\Omega_k}\frac{4k}{n^{3}} \le\sum_{j\ge1}\frac{4k+2}{(jk)^{3}} =\frac{6*\zeta(3)}{k^{2}} <\frac{6*1.203}{k^{2}}. $$

The assumption $n_j+2k<n_{j+1}$ seems reasonable, but one needs to check.

Because most indices fall into cancelling pairs of this kind, the remainder $g$ is tiny, explaining why $f(\phi^-)\approx\tfrac14$.

  • 1
    Works for me, thanks! With the benefit of hindsight, I'll edit the question's tags to gesture at some of these ideas. – Chris Culter Apr 24 '25 at 21:04