which we stated in corollary (4.3) lends itself quite easily to a matrix exponentiation solution:
[xiyi]=[x1y1Dy1x1]i−1[x1y1].
I also put forth the observation that the non-recursive Pell equation solution, derived from eigenvalue decomposition of corollary (4.3) in Pell Equations Have Infinite Solutions, is remarkably similar to Binet’s formula for the Fibonacci sequence:
In hindsight, it is obvious why this is the case. I put forth the hypothesis in 2D Recurrences and Combinatorial Arguments that “all twin (and likely higher orders) two-dimensional recurrences can be simplified into single two-dimensional recurrences via repeated substitution”. Allow me to state this conjecture more rigorously:
Conjecture 1.2 (Recurrence Detanglement): n-variate, z-order, k-degree, d-dimensional recurrences may always be reduced to n disjoint single-variable, z-order, k-degree, d-dimensional recurrences.
Here, I use the terminology n-variable to mean n sequences of variables, order to denote the number of terms to be added together for each recurrence, degree to denote the maximum power of terms we see multiplied together, and dimension to denote the number of indices we use to label each variable sequence.
I do not have the proof ready for this claim (I suspect it reduces to eigenvalue decomposition on some n-by-n matrix), but I will first demonstrate conjecture (1.2)’s viability in the Pell equation D=3. Starting with bivariate recurrences (1.1)
And indeed, this is now a single-variable, 1-order, 1-dimensional recurrence as hypothesized in conjecture (1.2), which is also the same type of recurrence as the Fibonacci. The similarity in form, then, can fully be explained from this point with the observation that both the Fibonacci recurrence and (1.3) may be written in similar matrix form and decomposed into eigenvalues.
A proper exploration into the recurrence detanglement in conjecture (1.2) will likely lead us onto the path to discover why the bivariate, 3-order, 1-degree, 2-dimensional recurrence (1.1) of 1761D in 2D Recurrences and Combinatorial Arguments
And indeed, this is now a single-variable, 1-order, 1-dimensional recurrence as hypothesized in conjecture (1.2), which is also the same type of recurrence as the Fibonacci. The similarity in form, then, can fully be explained from this point with the observation that both the Fibonacci recurrence and (1.3) may be written in similar matrix form and decomposed into eigenvalues.
A proper exploration into the recurrence detanglement in conjecture (1.2) will likely lead us onto the path to discover why the bivariate, 3-order, 1-degree, 2-dimensional recurrence (1.1) of 1761D in 2D Recurrences and Combinatorial Arguments
Ai,j=3Ai−1,j+3Ai−1,j−1−8Ai−1,j−2
results in a sum over combinations. But we will take our time getting there.
First, we must cover the linear sieve.
2 A Short Historical Note
Legend has it that in the 1600s, Fermat gave the Pell equation with D=151,
x2−151y2=1,
to his clergyman friend Wallis as a challenge, of which the minimal solution is
xy=1728148040,=140634693.
Wallis (and another friend of Fermat’s, who also received the challenge) did manage to solve it, but I imagine it was not without trudging through much manual arithmetic. I’m uncertain if the method of continued fractions was known at the time, but even then, it is no easy task to come up with the solution above.
It is impressive for a clergyman! And perhaps saddening, when one considers the clergymen of the modern times. This incident also harkons to the problem-sharing happening in my competitive programming (CP) circles, between me and Neal, Tony, Sanjeev, Wyatt, Zac, and others. Perhaps one of us will be in the textbooks of the future as the idiot who spent a whole week on a problem that his (much more experienced) friend posed as a joke.
From his Wikipedia page, it seems that Wallis is most famous for the Wallis product
Unfortunately this evocation is no coincidence, and Euler’s method for deriving ζ(2) unfortunately does trivialize Wallis’s derivation of his own product. Luckily, both derivations are tangential to our upcoming investigation into the Linear Sieve and Taylor’s Series, and I intend to discuss (2.1) when the time is right.
First, we need to establish the growth rates of the harmonic and prime harmonic series.
3 The Harmonic Series is Θ(lnN)
In CP, the well-known method to determine the prime numbers is the Sieve of Eratosthenes:
is_prime = [true, true, ...]
for i = 2 to N:
if is_prime[i]:
for j = i*i to N by i:
is_prime[j] = false
which is quoted to O(NlnlnN). Of course, $\ln\ln$s are uncommon and should raise some eyebrows. We can loosen the algorithm a little by starting the inner loop at 2i instead of i2, which roughly gives us the big-O runtime estimate
We will use the convention that Si′ denotes the i-th term in a sequence, and Si denotes the sum of the first i terms in the sequence, or alternatively the i-th term in the corresponding series. Thus, S∞ will refer to the (possibly divergent) sum of the infinite series.
Pi is, of course, a subset of the Harmonic Series, which I believe is taught in most high school classes today: