Random
Random
Random
p(x) = bx − a
clearly p(c) = 0.
Theorem 2. Not every algebraic number is rational
√
Proof. Consider x2 − 2 and its root 2
Definition 3. Fractional part
Let a ∈ R+ . We define fractional part as:
frac a := a − bac
1
Definition 4. Ulam numbers
Ulam sequence is defined in following way
u1 := 1
u2 := 2
un := min{x : ∃ m, k < n : ∀ m0 , k 0 < n :
(x > un−1 ) ∧ (um + uk = x) ∧ (um0 + uk0 = x =⇒ {m0 , k 0 } = {m, k})}
2
Now we use it to construct telescoping series
n
X
tn = k
k=1
n 2
X (k + 1) − k 2 1
= −
2 2
k=1
n n
!
1 X 2
X
= ((k + 1) − k 2 ) − 1
2
k=1 k=1
1
= (n2 + 2n + 1 − 1 − n)
2
n(n + 1)
=
2
= n(n + 1) − n
= n2
3
(k + 1) − k 3 = 3k 2 + 3k + 1
3
(k + 1) − k 3 − 3k − 1
k2 =
3
3
Now
n n 3
X X (k + 1) − k 3 − 3k − 1
k2 =
3
k=1 k=1
n n n
!
1 X 3
X X
= ((k + 1) − k 3 ) − 3k − 1
3
k=1 k=1 k=1
Proof. This proof is trivial if we use telescoping sum (with obvious identity)
n
X n
X
fk = (fk+2 − fk+1 )
k=1 k=1
= fn+2 − 1
The second way to prove this is: use induction. But its definitely uglier.
Definition 7. Lucas numbers
They are defined similarly to Fibonacci numbers. The only difference is seed
L1 = 1 and L2 = 3.
Theorem 9. Sum of the first n Lucas numbers
Pn
Proof. This is identical to Fibonacci formulae k=1 Lk = Ln+2 − 1. Proof is
identical.
4
Theorem 10. Fib and Lucas I
We will show
Ln = fn−1 + fn+1
Proof. TODO
Theorem 11. Fibonacci and Lucas II
We will show
f2n = fn Ln
Proof. TODO
Definition 8. Zeckendorf representation of a positive integer
It is the unique expression of this integer as the sum of distinct Fibonacci
numbers, where no two of these Fibonacci number are consecutive terms in the
Fibonacci sequence and where the term f1 = 1 is not used (but f2 = 1 can).
Theorem 12. Zeckendorf
Show that every integer has unique Zeckendorf representation.
Proof. First I will show that every integer has Zeckendorf representation.
P In-
duction: case of 1 is obvious. Consider number n + 1 number n = j∈J fj . If
2, 3 not in J: we simply add 1.
TODO
Definition 9. Generalized Fibonacci numbers
We define generalized Fibonacci number by g1 = a g2 = b and
gn = gn−1 + gn−2
gn = afn−2 + bfn−1
Proof. TODO
Definition 10. Linear homogeneous recurrence
TODO
Definition 11. Generating function
The generating function for the sequence an is the infinite series
∞
X
G(x) := a n xn
n=0
∃ k ∈ N : dk = n
5
Definition 13. Common divisor
For any integers a, b there always exists at least one integer n such that n | a ∧
n | b. We call this integers common divisors.
Definition 14. GCD
We call the greatest common divisor of a, b gcd. We denote it gcd(a, b). If
gcd(a, b) = 1 we say a, b are relatively prime.