For some values of $x \in \mathbb{R}$, we can define what I'll call the "average digit" of $x$ and denote as $\theta(x)$ via
$$\theta(x) = \lim_{n \to \infty} \frac{a_1 + \dots + a_n}{n}$$
where the $a_i$ are the uniquely defined as digits in the decimal expansion of $x$, that is $x = N.a_1a_2\dots$, for some integer $N$, where we do not allow infinitely trailing $9$s (for example, for $x=1$, we have $a_i=0 \forall i$, rather than $a_i = 9 \forall i$. In other words, we are using that $1=1.000...$, not that $1 = 0.999...$)
This limit is well-defined since $\theta_n := \frac{a_1 + \dots + a_n}{n}$ is a Cauchy sequence. (it’s not, my mistake! Let’s just say:)
$\theta(x)$ is defined for whichever $x$ this limit exists.
Problem: I was wondering whether there are any fixed points of $\theta$. That is, is there some number which describes what its average digit is? Well, we of course have $\theta(0) = 0$, but is there anything else?
I've been playing around with this for a bit, and I think I might have found an irrational number which is a fixed point of $\theta$. Intuitively it seems like it has to be, but I need to do a little more to prove it rigorously - hence the question. (N.B. its possible to show that all non-zero fixed points of $\theta$ are irrational, see this question.)
Here's the formal definition of the number:
Define $a_1 = 1$, $x_1 = \frac{1}{10}$ and, recursively for all $i > 1$, $a_i = \begin{cases}1 & \frac{a_1 + \dots + a_{i-1} + 0}{i} < x_{i-1} \\ 0 & \text{otherwise}\end{cases}$, $x_i = x_{i-1} + \frac{a_i}{10^i}$.
Then $x_i$ is increasing and bounded above (by $1$, say) so $x_i \to x$. $x$ is my number which I think obeys $\theta(x) = x$.
Intuitively, what we're actually doing here in this number's definition is the following: if we have some sequence of decimal digits $(a_i)$ of a real number $x$, we can define approximations $x_n = \sum_{i=1}^n \frac{a_i}{10^i}$, and $\theta_n = \sum_{i=1}^n \frac{a_i}{n}$ which will converge to $x$ and $\theta(x)$ respectively. We observe that if $a_n = 0$, then $x_n = x_{n-1}$ but $\theta_n < \theta_{n-1}$. So, if our integers $a_n$ are mostly zeroes, the $x_n$s will often stay constant for several terms in the sequence while the $\theta_n$s decrease slightly. Whenever $\theta_n$ drops below $x_n$, we'll insert a $1$ into the sequence to "correct course" and keep the $(\theta_n)$ sequence above the $(x_n)$ sequence.
The integers $i$ for which $a_i = 1$ are $1, 11, 20, 30, 40, 50, 60, 70, 80, 90, 100, \dots$. You can find these integers as a sequence $p_k$ by recursively defining $p_1 = 1$, $p_k = \min(n \in \mathbb{N} : \frac{k-1}{n} < \sum_{i=1}^{k-1} \frac{1}{10^{p_i}})$. As you can see the terms of $a_i$ quickly turn into successive multiples of $10$, and so we can approximate
$$x \approx \frac{1}{10} + \frac{1}{10^{11}} + \sum_{k=2}^{\infty} \frac{1}{10^{10k}} = 0.10000000001\overline{0000000010}.$$
This rational on the right-hand side has $\theta(x) = \frac{1}{10} \approx x$.
The sequence $p_k$ isn't going to be multiples of $10$ forever though - eventually this will break and instead of getting a rational with period $10$ with an "average digit" of $\frac{1}{10}$, we'll get a rational with period $10^{11}$ with an "average digit" of $\frac{1}{10} + \frac{1}{10^{11}}$, and so on.
What I've thus got from this recursive definition is that these $a_i$s define a sequence $x_n \to x$, with $\theta(x_n) \to x$. The only bit missing is that I'd like to say $\lim_{n \to \infty} \theta(x_n) = \theta(x)$.
What I'm not sure how to formally codify the fact that we are inserting $1$s near-periodically (we've already seen that $x \approx \frac{1}{10} + \frac{1}{10^{11}} + \sum_{k=2}^{\infty} \frac{1}{10^{10k}} = 0.10000000001\overline{0000000010}.$, and that this approximation is very good) and we are inserting these $1$s at a frequency that happens to agree with the earlier parts of $x$ that we've already written down. If we can express the intuitive idea here formally, I think that's what will allow us to prove that $\theta(x)=x$.
I might have just been staring at this for too long and gotten tired, but I can't make progress on this last bit. Can anyone see what we need to do here?
Of course, if I'm wrong and this number isn't a fixed point of $\theta$, explaining what's gone wrong here would also be a valid answer. Perhaps you can show $0$ is the only fixed point of $\theta$, that would certainly be a valid answer also.)