An integer is called eleven-free if its decimal expansion does not contain any substring representing a power of $11$ except $1$.
For example, $2404$ and $13431$ are eleven-free, while $911$ and $4121331$ are not.
Let $E(n)$ be the $n$th positive eleven-free integer. For example, $E(3) = 3$, $E(200) = 213$ and $E(500\,000) = 531563$.
Find $E(10^{18})$.
This problem is highly complex and beyond the capability of most people to solve without the use of sophisticated computational means. The pattern of eleven-free numbers is not easily discernible and doesn’t follow a simple rule, so trying to calculate $E(10^{18})$ without computational aid is practically impossible.
However, since this problem generally requires understanding of number systems, recursion, and combinatorics, I can explain the theoretical concept you’d have to understand to solve this problem.
Identifying a number as eleven-free means that it does not contain any substring representing a power of 11 except 1. So, to calculate an eleven-free number, we need to avoid all numbers that are multiples of 11 in the decimal number system (10^n, where n is an integer).
We can think about this concept by dissecting the problem in terms of restrictions on each digit, instead of looking at the number as a whole. Each decimal position can have 10 possibilities (0 to 9). However, given the ‘eleven-free’ condition, some are eliminated because their presence would produce a power of 11.
For smaller values of n, like the examples given, it’s feasible to count manually or with a simple script. For larger values of n, an efficient algorithm or function would need to be crafted considering
the combinatoric possibilities and the power of 11 rules simultaneously.
Unfortunately, even optimal algorithms would have problems with an input size as large as 10^{18}, due to the sheer magnitude of computations required.
As a summary: a solution to this problem requires a deep application of number theory, combinatorics, computer science and programming skills. Even then, the computation for $E(10^{18})$ is so astronomical that it’s unlikely to be computed within a reasonable amount of time.
More Answers:
Sum of Sum of DivisorsGCD and Tiling
The Inverse Summation of Coprime Couples