Skip to content

DiscreteRatio ​

The ratio f(n+1)/f(n)f(n+1)/f(n) between consecutive terms of a sequence, simplified.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageDiscreteRatio✓
DiscreteRatio(f, n)f(n+1)/f(n), simplified
Typed signatures
TypePackageApplies
(any, symbol) -> anycombinatoricsalways

Domain: Combinatorics

Details
  • Substitutes n→n+1n \to n+1 into ff and simplifies the quotient; stays symbolic when the ratio does not collapse further (e.g. a ratio of two named sequences with no known closed form).

Examples

Basic #

(n+1)!/n!=n+1(n+1)!/n! = n + 1

live ↗
InDiscreteRatio(n!,n)\mathrm{DiscreteRatio}(n!, n)Outn+1n+1

a constant ratio for a geometric sequence

live ↗
InDiscreteRatio(2n,n)\mathrm{DiscreteRatio}(2^{n}, n)Out22

A geometric term has constant ratio rr

live ↗
InDiscreteRatio(rk,k)\mathrm{DiscreteRatio}(r^{k}, k)Outrr

Ratio (x)k+1(x)k\frac{(x)_{k+1}}{(x)_k}, which simplifies to x+kx+k

live ↗
InDiscreteRatio(Pochhammer(x,k),k)\mathrm{DiscreteRatio}(\mathrm{Pochhammer}(x, k), k)OutPochhammer(x,k+1)Pochhammer(x,k)\frac{\mathrm{Pochhammer}(x, k+1)}{\mathrm{Pochhammer}(x, k)}
Scope #

Ratio of consecutive squares, (x+1)2x2\frac{(x+1)^2}{x^2}

live ↗
InDiscreteRatio(x2,x)\mathrm{DiscreteRatio}(x^2, x)Out(x+1)2x2\frac{(x+1)^2}{x^2}

A product of linear factors shifts each factor

live ↗
InDiscreteRatio((x−r1)(x−r2),x)\mathrm{DiscreteRatio}((x-r_1)(x-r_2), x)Out(−r1+x+1)(−r2+x+1)(x−r1)(x−r2)\frac{(-r_1+x+1)(-r_2+x+1)}{(x-r_1)(x-r_2)}

A rational function gives a rational ratio

live ↗
InDiscreteRatio(1+x1+x2,x)\mathrm{DiscreteRatio}(\frac{1+x}{1+x^2}, x)Outx3+2x2+x+2(x+1)((x+1)2+1)\frac{x^3+2x^2+x+2}{(x+1)((x+1)^2+1)}

A hypergeometric-style numerator over denominator

live ↗
InDiscreteRatio((x−r1)(x−r2)(x−p1)(x−p2),x)\mathrm{DiscreteRatio}(\frac{(x-r_1)(x-r_2)}{(x-p_1)(x-p_2)}, x)Out(−r1+x+1)(−r2+x+1)(x−p1)(x−p2)(−p1+x+1)(−p2+x+1)(x−r1)(x−r2)\frac{(-r_1+x+1)(-r_2+x+1)(x-p_1)(x-p_2)}{(-p_1+x+1)(-p_2+x+1)(x-r_1)(x-r_2)}

Ratio of falling factorials in the lower index

live ↗
InDiscreteRatio(FallingFactorial(a,x),x)\mathrm{DiscreteRatio}(\mathrm{FallingFactorial}(a, x), x)OutFallingFactorial(a,x+1)FallingFactorial(a,x)\frac{\mathrm{FallingFactorial}(a, x+1)}{\mathrm{FallingFactorial}(a, x)}

Rising factorial ratio in its length

live ↗
InDiscreteRatio(Pochhammer(a,x),x)\mathrm{DiscreteRatio}(\mathrm{Pochhammer}(a, x), x)OutPochhammer(a,x+1)Pochhammer(a,x)\frac{\mathrm{Pochhammer}(a, x+1)}{\mathrm{Pochhammer}(a, x)}

(x+1)!x!=x+1\frac{(x+1)!}{x!}=x+1 simplifies fully

live ↗
InDiscreteRatio(x!,x)\mathrm{DiscreteRatio}(x!, x)Outx+1x+1

Gamma ratio left as Γ(x+1)/Γ(x)\Gamma(x+1)/\Gamma(x)

live ↗
InDiscreteRatio(Γ(x),x)\mathrm{DiscreteRatio}(Γ(x), x)OutΓ(x+1)Γ(x)\frac{Γ(x+1)}{Γ(x)}

Binomial ratio in the top argument

live ↗
InDiscreteRatio((xk),x)\mathrm{DiscreteRatio}(\binom{x}{k}, x)Out(x+1k)(xk)\frac{\binom{x+1}{k}}{\binom{x}{k}}

Binomial ratio in the bottom argument

live ↗
InDiscreteRatio((nx),x)\mathrm{DiscreteRatio}(\binom{n}{x}, x)Out(nx+1)(nx)\frac{\binom{n}{x+1}}{\binom{n}{x}}

Constant ratio rr again, with continuous-looking variable

live ↗
InDiscreteRatio(rx,x)\mathrm{DiscreteRatio}(r^{x}, x)Outrr

A mixed hypergeometric term assembled from each factor's ratio

live ↗
InDiscreteRatio(FallingFactorial(x,a1)(xa2)rxPochhammer(x,b1)x!,x)\mathrm{DiscreteRatio}(\frac{\mathrm{FallingFactorial}(x, a_1)\binom{x}{a_2}r^{x}}{\mathrm{Pochhammer}(x, b_1)x!}, x)Outx!Pochhammer(x,b1)FallingFactorial(x+1,a1)(x+1a2)rx+1(x+1)!Pochhammer(x+1,b1)FallingFactorial(x,a1)(xa2)rx\frac{x!\mathrm{Pochhammer}(x, b_1)\mathrm{FallingFactorial}(x+1, a_1)\binom{x+1}{a_2}{{r}}^{x+1}}{(x+1)!\mathrm{Pochhammer}(x+1, b_1)\mathrm{FallingFactorial}(x, a_1)\binom{x}{a_2}{{r}}^{x}}

Catalan numbers as a ratio of consecutive terms

live ↗
InDiscreteRatio(CatalanNumber(x),x)\mathrm{DiscreteRatio}(\mathrm{CatalanNumber}(x), x)OutCatalanNumber(x+1)CatalanNumber(x)\frac{\mathrm{CatalanNumber}(x+1)}{\mathrm{CatalanNumber}(x)}

A term not depending on the variable has ratio 11

live ↗
In[DiscreteRatio(f,n),DiscreteRatio(f,k)]\bigl\lbrack\mathrm{DiscreteRatio}(f, n), \mathrm{DiscreteRatio}(f, k)\bigr\rbrackOut[1,1]\bigl\lbrack1, 1\bigr\rbrack

Ratio in the shape parameter of regularized gamma

live ↗
InDiscreteRatio(GammaRegularized⁡(n,z),n)\mathrm{DiscreteRatio}(\operatorname{GammaRegularized}(n, z), n)OutGammaRegularized⁡(n+1,z)GammaRegularized⁡(n,z)\frac{\operatorname{GammaRegularized}(n+1, z)}{\operatorname{GammaRegularized}(n, z)}
live ↗
In[DiscreteRatio((nk),n),DiscreteRatio((nk),k)]\bigl\lbrack\mathrm{DiscreteRatio}(\binom{n}{k}, n), \mathrm{DiscreteRatio}(\binom{n}{k}, k)\bigr\rbrackOut[(n+1k)(nk),(nk+1)(nk)]\bigl\lbrack\frac{\binom{n+1}{k}}{\binom{n}{k}}, \frac{\binom{n}{k+1}}{\binom{n}{k}}\bigr\rbrack
live ↗
InDiscreteRatio(aqx+bq2x,x)\mathrm{DiscreteRatio}(aq^{x}+bq^{2x}, x)Outaqx+1+bq2(x+1)aqx+bq2x\frac{aq^{x+1}+bq^{2(x+1)}}{aq^{x}+bq^{2x}}
live ↗
InDiscreteRatio((qx−r1)(qx−r2),x)\mathrm{DiscreteRatio}((q^{x}-r_1)(q^{x}-r_2), x)Out(qx+1−r1)(qx+1−r2)(qx−r1)(qx−r2)\frac{(q^{x+1}-r_1)(q^{x+1}-r_2)}{(q^{x}-r_1)(q^{x}-r_2)}
live ↗
InDiscreteRatio(aqx+bq2x1+qx,x)\mathrm{DiscreteRatio}(\frac{aq^{x}+bq^{2x}}{1+q^{x}}, x)Out(aqx+1+bq2(x+1))(qx+1)(aqx+bq2x)(qx+1+1)\frac{(aq^{x+1}+bq^{2(x+1)})(q^{x}+1)}{(aq^{x}+bq^{2x})(q^{x+1}+1)}
live ↗
InDiscreteRatio((qx−r1)(qx−r2)(qx−p1)(qx−p2),x)\mathrm{DiscreteRatio}(\frac{(q^{x}-r_1)(q^{x}-r_2)}{(q^{x}-p_1)(q^{x}-p_2)}, x)Out(qx−p1)(qx−p2)(qx+1−r1)(qx+1−r2)(qx+1−p1)(qx+1−p2)(qx−r1)(qx−r2)\frac{(q^{x}-p_1)(q^{x}-p_2)(q^{x+1}-r_1)(q^{x+1}-r_2)}{(q^{x+1}-p_1)(q^{x+1}-p_2)(q^{x}-r_1)(q^{x}-r_2)}
live ↗
InDiscreteRatio(QPochhammer(a,q,x),x)\mathrm{DiscreteRatio}(\mathrm{QPochhammer}(a, q, x), x)OutQPochhammer(a,q,x+1)QPochhammer(a,q,x)\frac{\mathrm{QPochhammer}(a, q, x+1)}{\mathrm{QPochhammer}(a, q, x)}
live ↗
InDiscreteRatio(QBinomial(a,x,q)QFactorial(x,q)QPochhammer(b,q,x),x)\mathrm{DiscreteRatio}(\frac{\mathrm{QBinomial}(a, x, q)\mathrm{QFactorial}(x, q)}{\mathrm{QPochhammer}(b, q, x)}, x)OutQPochhammer(b,q,x)QFactorial(x+1,q)QBinomial(a,x+1,q)QPochhammer(b,q,x+1)QFactorial(x,q)QBinomial(a,x,q)\frac{\mathrm{QPochhammer}(b, q, x)\mathrm{QFactorial}(x+1, q)\mathrm{QBinomial}(a, x+1, q)}{\mathrm{QPochhammer}(b, q, x+1)\mathrm{QFactorial}(x, q)\mathrm{QBinomial}(a, x, q)}
live ↗
InDiscreteRatio(BarnesG(x),x)\mathrm{DiscreteRatio}(\mathrm{BarnesG}(x), x)OutΓ(x)Γ(x)
live ↗
InDiscreteRatio(Hyperfactorial(x),x)\mathrm{DiscreteRatio}(\mathrm{Hyperfactorial}(x), x)Out(x+1)x+1(x+1)^{x+1}
live ↗
InDiscreteRatio(BetaRegularized⁡(z,n,m),m)\mathrm{DiscreteRatio}(\operatorname{BetaRegularized}(z, n, m), m)OutBetaRegularized⁡(z,n,m+1)BetaRegularized⁡(z,n,m)\frac{\operatorname{BetaRegularized}(z, n, m+1)}{\operatorname{BetaRegularized}(z, n, m)}
Applications #

ca(k+1)+bcak+b=ca\frac{c^{a(k+1)+b}}{c^{ak+b}}=c^a

live ↗
InDiscreteRatio(cak+b,k)\mathrm{DiscreteRatio}(c^{ak+b}, k)Outcac^{a}
About
Examples30
Checked againstWolfram Language 30 agree
CrosswalkWolfram Language

See also: GeneratingFunction, FindSequenceFunction