第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
with first term and last term that satisfies the following conditions:
1. is a positive integer.
2. is a randomly chosen positive divisor of am for every positive integer
, given that .
3. If for some positive integer , some term , then the RDS terminates
at (there will be no other terms after ).
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
, and .
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
chance of being 2 and
a chance of being 1.
Since any RDS stops when a term becomes 1, given the
fixed first term 2, the RDS has a
probability of occurring, whereas
has a
probability of occurrence.
So, among RDSs starting with 2, is more likely to occur than
.
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
is defined as the probability that given a fixed first term ,
the RDS
will appear.
{\bf Definition 3.}
The length of an RDS
is ,
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
be with
being the corresponding lengths of those sequences.
is then defined as the expected value of
the length of the sequence starting with , that is:
We now present a recursive formula for finding for any positive integer
greater than 1.
This recursive formula will then be used to derive a more
computationally efficient explicit formula for ,
where is a prime and is a nonnegative integer.
\subsection{A General Recursive Algorithm for finding }
Let us examine a random divisor sequence starting with first term .
We now present a formula in Theorem 1 below that avoids the cumbersome definition
of above and forms a clever way of writing 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 be a positive integer greater than .
Then
where represents the familiar number theoretic function of the number of
positive divisors of , and we assume is positive.
}
{\bf Proof.}
Let
, be
positive divisors of in increasing order ( for every nonnegative integer )
with corresponding expected values
.
Now after the first term , there will be a second term , since the first term is not 1 and
the RDS will thus not terminate (thus giving rise to the condition ).
Let the RDSs beginning with the fixed first term have probabilities of occurrence
with
being the corresponding lengths of these RDSs.
The corresponding RDSs beginning with the fixed first term and
fixed second term thus have probabilities of occurrence
with , ,
being the corresponding lengths of those sequences.
This is true because the addition of the extra term (the first term: ) 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 .
So, by Definition 4,
We will now write differently.
Since will be one of
with probability
,
will be the average of
, or
The second equality holds since
are the positive divisors of .
Again, by Definition 4,
But
because the sum of all probabilities of occurrence of a RDS sequence with first
term is equal to 1.
Thus, substituting back into the expression for ,
we have
This is what we wanted to prove.
Using this formula, we can easily obtain recursively.
To show this, we let the prime factorization of
,
with primes and
nonnegative integers.
Note that ,
as an RDS terminates when it has a term equal to 1.
We can thus solve for
, , since
,
which can be solved for .
If we can solve for , we can also solve recursively for a , where
is a positive divisor of that is only a product of primes.
Continuing on in the same manner, we can find recursively.
We present the following example:
{\bf Example 2.}
Find .
{\bf Solution.}
.
Thus
However, using the formula in Theorem 1 to find is computationally
inefficient.
As it is recursive, we would have to find
in order to compute (the value of is known already).
Thus, we must perform computations to find .
To help begin addressing the shortcoming, we develop a computationally efficient explicit
formula for the fundamental case ,
where is a prime and is a nonzero integer.
\subsection{An Explicit Formula for }
We now concern ourselves with finding 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 be a prime and be a nonnegative integer.
Then
}
{\bf Proof.}
{\bf Case 1.}
.
If , then
by the work above, which proves the first case.
{\bf Case 2.}
.
For ,
we will apply our recursive formula for .
Note that , since has only the positive divisors 1 and .
Thus,
as desired.
{\bf Case 3.}
.
By the previous section, we know that
Consider the number , with a prime and a positive integer.
It has the positive divisors
, so .
Using our formula for developed in Theorem 1, we see that, for a prime and
,
Isolating the term on the left-hand side, it becomes clear that
But
because the positive divisors of
are and .
Substituting the value of into our expression for ,
we see that for
, .
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 :
To rigorously prove this assertion of the value of , we turn to induction.
The following proof of this lemma is essentially a formalization of the
pattern identified above.
{\bf Lemma 1.}
{\it If and , then
for .
}
{\bf Proof.}
For ,
,
as desired.
Now suppose that for
, .
Then,
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 monotonically
decreases, yet will never converge.
This, of course, is a simple consequence
of the application of the integral test on the harmonic series.
Whether
,
with prime and a nonnegative integer for each such
that , converges or diverges as can be seen in the following.
Fix a prime and define the map from integers to powers of by letting
be the highest power of that divides .
For a term in a RDS,
will be a divisor of and each divisor of is equally likely to occur.
Thus applying term-by-term to a RDS sequence for will give an RDS
sequence for (except it will not necessarily be truncated at the first
occurrence of 1).
Thus
.
Hence for we have
which diverges.
Similar arguments to the ones given would show that for distinct primes
, ,
Specifically, one can check that both sides of the equality satisfy the recursion
and
More sophisticated arguments give for
that
where is the number of times the prime divides and is the
number of divisors of .
{\bf Proof.}
We first consider the case of a RDS beginning at
.
We want to derive formulas for the probability that
.
Let be the
matrix with -entry for and zero otherwise.
This is the transition matrix for the random walk corresponding to a RDS.
If is the column vector with -entry the probability that
, , then
.
Hence .
Let be the column vector with -entry
(hence zero entries for ).
Then the entry of is
That is, is an eigenvector of with eigenvalue .
Also note that the entry of
is
That is .
Hence we have
and
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 be the
number of steps before the RDS terminates.
Then if and only if .
Hence
Recall that if is any non-negative integer valued random variable, then
Let
and let be the number of steps until the RDS beginning
at terminates.
Let be the time until the RDS has no factor of .
As described in remark (7), looking at only the factors of in an RDS beginning
at gives an RDS beginning at .
Thus the are independent and satisfy
Since
we have
if and only if for all and hence
Hence (letting )
Plugging in the formula above for 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
for integral .
Then we found an explicit formula for , where
is a prime and is a nonnegative integer, in terms of , greatly improving
the computational efficiency of finding .
The techniques used in finding an explicit formula for might also help in
finding an explicit formula for
,
where
is the prime factorization of ,
in terms of
.
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}
%%%%%%%
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发者必知的日志记录最佳实践
· 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