This section lists some of the basic formulas you need to memorize or be able to derive and reviews basic proof techniques.
这节列出一些你需要记住的一些基本的公式或者能够推倒出来并且复习一些证明技巧
1.2.1 Exponents(指数)
image.png
1.2.2 Logarithms(对数)
In computer science,all logarithms are to the base 2 unless specified otherwise
在计算机科学中,所有的对数都是以2为底的,除非另外指定
Definition 1.1
if and only if
Several convenient equalities follow from this definition.
Theorem 1.1
Proff
Let X=,Y= and Z=.Then by definition of logarithms ,,,and .Combining these three equalities yields .Therefore ,X=YZ,which implies Z=X/Y,proving the theorem
Theorem1.2
Proff
Let X=,Y=,and Z=.Then,assuming the default base of 2, and .Combining the last thress equalities yields .Therefore X+Y=Z,which proves the theorem.
Some other useful formulas,which can all be derived in a similar manner,follow.
for all X>0
1.2.3 Series
The easiest formulas to remember are
and the companion,
In the later formula,if 0<A<1,then
and as N tends to ,the sum approaches .These are the 'geometric series' formulas.
We can derive the last formula for in the following manner.Let S be the sum.Then
Then
If we subtract these two equations (which is permissible only for a convergent series)
virtually all the terms on the right side cancel,leaving
which implies that
we can use the same technique to compute ,a sum that occurs frequently.We write
and multiply by 2,obtaining
Substracting these two equations yields
Thus S=2
Another type of common series in analysis is the arithmetic series.Any such series can be evaluated from the basic formula.
For instance,to find the sum 2+5+8+...+(3k-1),rewrite it as 3(1+2+3+...+k)-(1+1+1+...+1),which is clearly .Another way to remember this is to add the first and last terms(total 3k+1),the second and the next to last terms(total 3k+1),and so on.Since there are k/2 of these paris,the total sum is k(3k+1)/2,which is the same answer as before.
The next two formulas pop up now and then but are fairly uncommon.
when k=-1,the latter formula is not valid.We then need the following formula,which is used far more in computer science than in other mathematical disciplines.The number are known as the harmonic numbers,and the sum is known as a harmonic sum.The error in the following approximation tends to ,which is known as Euler's Constant.
These two formulas are just general algebraic manipulations.
1.2.4 Modular Arithmetic
We say that A is congruent to B modulo N,written ,if N divides A-B.Intuitively,this means that the remainder is the same when either A or B is divided by N,Thus ,,As with equality, if ,then and .
Often,N is a prime number.In that case,there are three important theorems.
First ,if N is prime,then is true if and only if or .In other words,if a prime number N divides a product of two numbers.it divides at least one of the two numbers.
Second,if N is prime,then the equation has a unique solution(mod N),for all 0<a<N,This solution 0<x<N,is the multiplicative inverse.
Third,if N is prime,then the equation has either two solutions(mod N),for all 0<a<N,or no solutions.
There are many theorems that apply to modular arithmetic ,and some of them require extraordinary proofs in number theory.We will use modular arithmetic sparingly,and the preceding theorems will suffice.
网友评论