Sequences · element-wise ratio
Running Quotient: Successive Division of a Sequence
The running quotient of a sequence x₁, x₂, …, xₙ is the sequence of ratios r_k = x_{k+1} / x_k for k = 1 to n − 1. It is the multiplicative twin of the first difference: where differencing asks how much each element grew, the running quotient asks by what factor. The result has one element fewer than the input, and it is computed element by element, with no loop needed in a language that divides vectors directly.
A constant running quotient is the signature of a geometric sequence. A quotient that settles toward 1 means growth is slowing down, and a quotient that settles on a limit other than 1 means a steady exponential rate. That makes the operation a first diagnostic for a column of numbers.
Three worked sequences
Start with the geometric sequence 2, 6, 18, 54. The quotients are 6/2, 18/6 and 54/18, each equal to 3. Nothing else is needed to see the rule.
Now the squares 1, 4, 9, 16, 25. The quotients are 4, 2.25, 1.7778 and 1.5625, which equal ((k + 1)/k)² for k = 1 to 4. They fall steadily toward 1, since a polynomial grows more slowly than any geometric sequence.
The reciprocals of factorials give a third pattern: 1, 1, 1/2, 1/6, 1/24. The quotients are 1, 1/2, 1/3 and 1/4, so the quotient after the term 1/k! is 1/(k + 1). This is exactly the ratio that the ratio test for series examines, and its limit of 0 proves convergence of the series for the exponential function.
The Fibonacci case
The Fibonacci numbers 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 give quotients 1, 2, 1.5, 1.666667, 1.6, 1.625, 1.615385, 1.619048, 1.617647 and 1.618182. They do not rise monotonically; they alternate above and below the limit (1 + √5)/2 = 1.618034 and tighten each time. The error shrinks by a factor near 0.38 per step, so the sixth quotient is within 0.007 of the limit and the tenth within 0.00015.
The reason is the recurrence F_{k+1} = F_k + F_{k−1}. Dividing both sides by F_k yields r_k = 1 + 1/r_{k−1}, so any limit r must satisfy r = 1 + 1/r, that is r² − r − 1 = 0. The positive root is the golden ratio. The same recurrence is the continued fraction worked through in Lentz’s method, where successive convergents are exactly these quotients. The numbers themselves are tabulated on the Fibonacci numbers page.
Getting the sequence back
The quotients lose the first element but otherwise lose no information. Multiplying them cumulatively recovers the original: x_{k+1} = x₁ · r₁ · r₂ · … · r_k. This is a cumulative product, and the pair of operations is the multiplicative counterpart of differencing and cumulative summation.
For the geometric example, starting at 2 with quotients 3, 3, 3, the cumulative products are 3, 9, 27, and multiplying each by 2 yields 6, 18, 54. The intermediate product telescopes: each numerator cancels the denominator of the next factor, leaving only x_{k+1}/x₁.
Edge cases and noise
Division by zero is the main hazard. A sequence containing a zero produces an infinite or undefined quotient at that position, and a sequence with a near-zero element produces an enormous one. Decide in advance whether to return a missing marker, skip the pair or reject the input. The quotient after a zero is not defined either, so one zero spoils two entries.
Signs matter as well. A negative quotient means the sequence changed sign, which is informative for alternating series and misleading for noisy data around zero.
Measurement noise is amplified. If each element has a relative error of 1 percent, the quotient carries about 1.4 percent, since the two independent errors add in quadrature. Quotients of nearly equal noisy numbers are therefore weak evidence of any trend; averaging over a window or fitting a line to the logarithms is steadier.
Logarithmic form
Taking logarithms converts the quotient into a difference, ln r_k = ln x_{k+1} − ln x_k. For positive data this is the usual way to estimate a growth rate: the mean of the log-quotients is the average continuous growth rate per step. It is also the safer way to compute the quotient of very large or very small numbers, where the numerator and denominator would overflow before the division.
For element-wise operations on whole vectors see element-by-element multiplication, and for the wider family of sequence and interpolation methods see interpolation and calculus.