第29篇

\section{Expected Value of the Length of a Random Divisor}%29
\markboth{Articles}{Expected Value of the Length of a Random Divisor}

\vspace{4.2cm}

\subsection{Introduction and Preliminaries}
An understanding of sequences and skills in their manipulation are essential
in order to obtain a practical and thorough knowledge of mathematics.
In this paper, we will explore a particular probabilistic sequence called the {\it random
divisor sequence}.

{\bf Definition 1.}
A random divisor sequence, or an RDS, is a sequence of positive
integers
{a1,a2,,ak1,ak=1}
with first term a1 and last term ak=1 that satisfies the following conditions:

1. a1 is a positive integer.

2. am+1 is a randomly chosen positive divisor of am for every positive integer
m, given that am1.

3. If for some positive integer k, some term ak=1, then the RDS terminates
at ak (there will be no other terms after ak).

This sequence, never previously formally defined, is a generalization of a
sequence introduced in USAMTS 2/3/17 [1] by Matthew Crawford.

{\bf Example 1.}
Possible RDSs include
{1}, {125,5,5,1} and {24,24,6,2,1}.

It is clear from the definition of an RDS that, given a fixed first term, some
RDSs are more likely to occur than others.
For example, consider the RDS that begins with 2.
The next term following a 2 has a \ds\f12
chance of being 2 and
a \ds\f12 chance of being 1.
Since any RDS stops when a term becomes 1, given the
fixed first term 2, the RDS {2,1} has a \ds\f12
probability of occurring, whereas
{2,2,2,2,2,2,2,1} has a \ds\f127=\ds\f1128
probability of occurrence.
So, among RDSs starting with 2, {2,1} is more likely to occur than
{2,2,2,2,2,2,2,1}.
This understanding of probability is important in understanding the expected value
of the length of a sequence, given a fixed first element.
We will thus define three terms that rigorously develop such concepts.

{\bf Definition 2.}
The probability of occurrence of an RDS {a1,,ak=1}
is defined as the probability that given a fixed first term a1,
the RDS {a1,,ak=1}
will appear.

{\bf Definition 3.}
The length of an RDS
{a1,,ak=1} is k,
the number of terms in the sequence.

{\bf Definition 4.}
Let the set of possible probabilities of occurrences of an RDS
with fixed first term
n be p1,p2,p3, with L1,L2,L3,
being the corresponding lengths of those sequences.
E(n) is then defined as the expected value of
the length of the sequence starting with n, that is:
E(n)=iLipi.

We now present a recursive formula for finding E(n) for any positive integer
n greater than 1.
This recursive formula will then be used to derive a more
computationally efficient explicit formula for E(pα),
where p is a prime and α is a nonnegative integer.

\subsection{A General Recursive Algorithm for finding E(n)}

Let us examine a random divisor sequence starting with first term n.
We now present a formula in Theorem 1 below that avoids the cumbersome definition
of E(n) above and forms a clever way of writing E(n) recursively.
This formula was discussed briefly in [2], but we will now give a more general form
of it.
Our proof of this formula below is also significantly more rigorous than
the proof found in [2].

{\bf Theorem 1.}
{\it Let n be a positive integer greater than 1.
Then
E(n)=1+\ds\f1τ(n)d|nE(d),
where τ(n) represents the familiar number theoretic function of the number of
positive divisors of n, and we assume d is positive.
}

{\bf Proof.}
Let
d1=1, d2,,dτ(n)1,dτ(n)=n be τ(n)
positive divisors of n in increasing order (dk<dk+1 for every nonnegative integer k)
with corresponding expected values
E(d1),E(d2),,E(dτ(n)1),E(dτ(n)).
Now after the first term n, there will be a second term m, since the first term is not 1 and
the RDS will thus not terminate (thus giving rise to the condition n>1).
Let the RDSs beginning with the fixed first term m have probabilities of occurrence
q1,q2,q3, with J1,J2,J3,
being the corresponding lengths of these RDSs.
The corresponding RDSs beginning with the fixed first term n and
fixed second term m thus have probabilities of occurrence
q1,q2,q3, with J1+1, J2+1, J3+1,
being the corresponding lengths of those sequences.
This is true because the addition of the extra term (the first term: n) only
changes the length of the RDS, not the probability of occurrence of the RDS,
and because in our case, the probability of occurrence is solely dependent on m.
So, by Definition 4,
E(m)=iJiqi.

We will now write E(m) differently.
Since m will be one of d1,,dτ(n)
with probability
\ds\f1τ(n),
E(m) will be the average of
E(d1),,E(dτ(n)), or
E(m)=\ds\f1τ(n)i=1τ(n)E(di)=\ds\f1τ(n)d|nE(d).

The second equality holds since
d1,d2,,dτ(n)1,dτ(n)
are the positive divisors of n.

Again, by Definition 4,
E(n)=i(Ji+1)(qi)=i(Jiqi+qi)=iJiqi+iqi=E(m)+iqi.

But
E(m)=\ds\f1τ(n)d|nE(d)\qand\qiqi=1,
because the sum of all probabilities of occurrence of a RDS sequence with first
term m is equal to 1.
Thus, substituting back into the expression for E(n),
we have
E(n)=1+\ds\f1τ(n)d|nE(d).

This is what we wanted to prove.
Using this formula, we can easily obtain E(n) recursively.
To show this, we let the prime factorization of
n=\dsi=1kpiαi,
with p1,p2,,pk primes and α1,α2,,αk
nonnegative integers.
Note that E(1)=1,
as an RDS terminates when it has a term equal to 1.
We can thus solve for
E(pi), 1ik, since
E(pi)=1+\ds\f12(E(pi)+E(1))=1+\ds\f12(E(pi)+1),
which can be solved for E(pi).
If we can solve for E(pi), we can also solve recursively for a E(d), where d
is a positive divisor of n that is only a product of primes.
Continuing on in the same manner, we can find E(n) recursively.


We present the following example:

{\bf Example 2.}
Find E(75).

{\bf Solution.}
E(75)=1+\ds\f16(E(1)+E(3)+E(5)+E(15)+E(25)+E(75)).
E(1)=1E(3)=1+\ds\f12(E(1)+E(3))=1+\ds\f12(E(3)+1)\RiE(3)=3E(5)=1+\ds\f12(E(1)+E(5))=1+\ds\f12(E(5)+1)\RiE(5)=3E(15)=1+\ds\f14(E(1)+E(3)+E(5)+E(15))\RiE(15)=\ds\f113E(25)=1+\ds\f13(E(1)+E(5)+E(25))=1+\ds\f13(1+3+E(25))\RiE(25)=\ds\f72.

Thus
E(75)=1+\ds\f16(E(1)+E(3)+E(5)+E(15)+E(25)+E(75))=1+\ds\f16(1+3+3+\ds\f113+\ds\f72+E(75))\RiE(75)=\ds\f12130.

However, using the formula in Theorem 1 to find E(n) is computationally
inefficient.
As it is recursive, we would have to find
E(d2),E(d2),,E(dτ(n)1),E(dτ(n))
in order to compute E(n) (the value of E(d1)=E(1)=1 is known already).
Thus, we must perform τ(n)1 computations to find E(n).
To help begin addressing the shortcoming, we develop a computationally efficient explicit
formula for the fundamental case E(pα),
where p is a prime and α is a nonzero integer.

\subsection{An Explicit Formula for E(pα)}

We now concern ourselves with finding E(n) for a most fundamental case of
numbers: powers of primes.
The following formerly unproven result is useful
for its computational efficiency.

{\bf Theorem 2.}
{\it Let p be a prime and α be a nonnegative integer.
Then
E(p^\alpha )= \left\{\ba{lll} 1 & \mbox{if} & \alpha =0\\ 2+\ds\sum_{i=1}^\alpha \ds\f{1}{i} & \mbox{if} & \alpha >0. \ea\right.

}

{\bf Proof.}
{\bf Case 1.}
α=0.
If α=0, then E(pα)=E(p0)=E(1)=1
by the work above, which proves the first case.

{\bf Case 2.}
α=1.
For α=1,
we will apply our recursive formula for E(n).
Note that τ(p)=2, since p has only the positive divisors 1 and p.

Thus,
E(p)=1+\ds\f12(E(1)+E(p))\Ri\ds\fE(p)2=1+\ds\fE(1)2\RiE(p)=2+E(1)=3=2+i=11\ds\f1i,
as desired.

{\bf Case 3.}
α>1.
By the previous section, we know that
E(n)=1+\ds\f1τ(n)d|nE(d).

Consider the number pα, with p a prime and α a positive integer.
It has the positive divisors
1,p,p2,,pα, so τ(pα)=α+1.
Using our formula for E(n) developed in Theorem 1, we see that, for a prime p and
α>0,
E(pα)=1+\ds\f1α+1(1+E(p)+E(p2)++E(pα2)+E(pα1)+E(pα)).

Isolating the E(pα) term on the left-hand side, it becomes clear that
E(pα)=1+\ds\fE(pα)α+1+\ds\f1α+1(1+E(p)+E(p2)++E(pα1))
\ds\fαE(pα)α+1=1+\ds\f1α+1(1+E(p)+E(p2)++E(pα1))
E(pα)=\ds\f1α+1+\ds\f1α(1+E(p)+E(p2)++E(pα1)).

But
E(pα1)=1+\ds\f1α(1+E(p)+E(p2)++E(pα2)+E(pα1)),
because the positive divisors of
pα1 are 1,p,p2,,pα1 and τ(p)=α.
Substituting the value of E(pα1) into our expression for E(pα),
we see that for
α>1, E(pα)=E(pα1)+\ds\f1α.
This is clearly a cleaner recursion than the one previously given.
However, we still have not obtained an explicit formula.
But if we actually apply our recursive formula, we see the following pattern
for α>1:
E(p2)=E(p)+\ds\f12=3+\ds\f12E(p3)=E(p2)+\ds\f13=3+\ds\f12+\ds\f13E(p4)=E(p3)+\ds\f14=3+\ds\f12+\ds\f13+\ds\f14E(pα)=3+\dsi=2α\ds\f1i=2+\dsi=1α\ds\f1i, by shifting indices.

To rigorously prove this assertion of the value of E(pα), we turn to induction.
The following proof of this lemma is essentially a formalization of the
pattern identified above.

{\bf Lemma 1.}
{\it If E(p)=3 and E(pα)=E(pα1)+\ds\f1α, then
E(pα)=2+i=1α\ds\f1i,
for α>1.

}

{\bf Proof.}
For α=2,
E(p2)=E(p)+\ds\f12=3+\ds\f12=2+\dsi=12\ds\f1i,
as desired.

Now suppose that for
α1>1, E(pα1)=2+\dsi=1α1\ds\f1i.
Then,
E(pα)=E(pα1)+\ds\f1α
and we are done.
By transitivity, we have also proven Case 3.
The completion of the proof of this final case also completes the proof of Theorem 2.

It is interesting to note that as α monotonically increases without bound,
the difference between successive terms of the sequence E(pα) monotonically
decreases, yet E(pα) will never converge.
This, of course, is a simple consequence
of the application of the integral test on the harmonic series.
Whether
E(\dsi=1kpiαi),
with pi prime and αi a nonnegative integer for each i such
that 1ik, converges or diverges as αi can be seen in the following.

Fix a prime p and define the map π from integers to powers of p by letting
π(n) be the highest power of p that divides n.
For a term ai in a RDS, π(ai+1)
will be a divisor of π(ai) and each divisor of π(ai) is equally likely to occur.
Thus applying π term-by-term to a RDS sequence for a1 will give an RDS
sequence for π(a1) (except it will not necessarily be truncated at the first
occurrence of 1).
Thus
E(n)E(π(n)).
Hence for n=\dsi=1kpiαi we have
E(i=1kpiαi)max1ikE(piαi)
which diverges.

Similar arguments to the ones given would show that for distinct primes
p1,,pr, r1,
E(p1p2pr)=1+k=1r\ds(rk)\ds\f(1)k12k2k1=2+m=1(1(12m)r).

Specifically, one can check that both sides of the equality satisfy the recursion
f0=1 and
fr=1+\ds\f12rk=0r\ds(rk)fk.

More sophisticated arguments give for n=\dsi=1kpiαi
that
E(n)=1+k=0(1i=1rs=0αi(1)s\ds(αis)(s+1)k)=1d|n,d1\ds\fτ(d)τ(d)1i=1r(1)vpi(d)\ds(αivpi(d)),
where vp(m) is the number of times the prime p divides m and τ(m) is the
number of divisors of m.

{\bf Proof.}
We first consider the case of a RDS beginning at
a1=pα.
We want to derive formulas for the probability that
ak=pβ.
Let M be the (α+1)×(α+1)
matrix with (i,j)-entry 1/(j+1) for 0ijα and zero otherwise.
This is the transition matrix for the random walk corresponding to a RDS.
If vk is the column vector with β-entry the probability that
ak=pβ, 0βα, then
vk+1=Mvk.
Hence vk=Mk1v1.

Let us be the column vector with β-entry (1)sβ\ds(sβ)
(hence zero entries for β>s).
Then the β entry of Mus is
r=βs\ds\f(1)srr+1\ds(sr)=\ds\f1s+1r=βs(1)(s+1)(r+1)\ds(s+1r+1)=\ds\f(1)sβs+1\ds(sβ).

That is, us is an eigenvector of M with eigenvalue 1/(s+1).
Also note that the β entry of \dss=0α\ds(αs)us
is
\sum_{s=\beta }^\alpha (-1)^{s-\beta }\ds\binom{\alpha }{s}\ds\binom{s}{\beta } =\ds\binom{\alpha }{\beta }\sum_{s=\beta }^\alpha (-1)^{s-\beta } \ds\binom{\alpha -\beta }{s-\beta } =\left\{\ba{ll} 0, & \beta <\alpha \\ 1, & \beta =\alpha . \ea\right.

That is v1=\dss=0α\ds(αs)us.
Hence we have
vk=s=0α\ds(αs)(s+1)1kus
and
Prob(ak=pβ)=s=βα(1)sβ\ds(αs)\ds(sβ)(s+1)1k=\ds(αβ)s=βα\ds\f(1)sβ(s+1)k1\ds(αβsβ).


One can avoid matrices and prove this formula by induction by writing down
fairly obvious recursions, but it is a little ugly.
In particular, let X be the
number of steps before the RDS terminates.
Then Xk if and only if ak=1=p0.
Hence
Prob(Xk)=s=0α\ds\f(1)s(s+1)k1\ds(αs).

Recall that if Y is any non-negative integer valued random variable, then
E(Y)=k=0kProb(Y=K)=k=0m=1kProb(Y=k)=m=1k=mProb(Y=k)=m=1Prob(Yk).

Let n=\dsi=1rpiαi
and let X be the number of steps until the RDS beginning
at n terminates.
Let Xi be the time until the RDS has no factor of pi.
As described in remark (7), looking at only the factors of pi in an RDS beginning
at n gives an RDS beginning at piαi.
Thus the Xi are independent and satisfy
Prob(Xik)=s=0αi\ds\f(1)s(s+1)k1\ds(αis).

Since X=maxiXi
we have
Xk if and only if Xik for all i and hence
Prob(Xk)=i=1rProb(Xik)=i=1rs=0αi\ds\f(1)s(s+1)k1\ds(αis).

Hence (letting m=k2)
E(n)=E(X)=k=1Prob(Xk)=1+k=2(1Prob(Xk1))=1+m=0(1Prob(Xm+1)).


Plugging in the formula above for Prob(Xm+1) gives the first formula.
The second formula is obtained the first by expanding the product and summing
the resulting geometric series.

\subsection{Conclusion}
In this paper, we first defined the previously undefined random divisor sequence.
We found a general formula that can be used to solve recursively for
E(n) for integral n>1.
Then we found an explicit formula for E(pα), where
p is a prime and α is a nonnegative integer, in terms of α, greatly improving
the computational efficiency of finding E(pα).
The techniques used in finding an explicit formula for E(pα) might also help in
finding an explicit formula for
E(n)=E(\dsi=1kpiαi),
where \dsi=1kpiαi
is the prime factorization of n,
in terms of
α1,α2,,αk.
Such explicit formulas currently appear difficult to
generate because of the complexity of the recursion used in Theorem 1.

\section*{Bibliography}
\bi
\item[{[1]}]
Crawford, Matthew (2005, December 11), United States of America,
Mathematical Talent Search (USAMTS) Round 3 Problems, Year 17

\item[{[2]}]
http://www.usamts.org/Tests/USAMTSProblems\_17\_3.pdf

\item[{[3]}]
N. Sato, (2006, February 19), United States of America, Mathematical
Talent Search Solutions to Problem 2/3/17
\ei

\bigskip
\hfill
{\Large Saurabh Pandey}

 

%%%%%%%

posted on   Eufisky  阅读(176)  评论(0编辑  收藏  举报

编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示