How to Find Algebraic Relations? Manuel Kauers RISC-Linz, Austria - - PowerPoint PPT Presentation

how to find algebraic relations
SMART_READER_LITE
LIVE PREVIEW

How to Find Algebraic Relations? Manuel Kauers RISC-Linz, Austria - - PowerPoint PPT Presentation

How to Find Algebraic Relations? Manuel Kauers RISC-Linz, Austria Algebraic Relations Elementary Viewpoint . Let f 1 ( n ) , f 2 ( n ) , . . . , f m ( n ) be sequences in a field Algebraic Relations Elementary Viewpoint . Let f 1


slide-1
SLIDE 1

How to Find Algebraic Relations?

Manuel Kauers RISC-Linz, Austria

slide-2
SLIDE 2

Algebraic Relations – Elementary Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.
slide-3
SLIDE 3

Algebraic Relations – Elementary Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Suppose that p(x1, . . . , xm) ∈

[x1, . . . , xm] is such that

p

  • f1(n), f2(n), . . . , fm(n)
  • = 0

(n ≥ 0).

slide-4
SLIDE 4

Algebraic Relations – Elementary Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Suppose that p(x1, . . . , xm) ∈

[x1, . . . , xm] is such that

p

  • f1(n), f2(n), . . . , fm(n)
  • = 0

(n ≥ 0). Then p is called an algebraic relation of the sequences fi(n).

slide-5
SLIDE 5

Algebraic Relations – Elementary Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Suppose that p(x1, . . . , xm) ∈

[x1, . . . , xm] is such that

p

  • f1(n), f2(n), . . . , fm(n)
  • = 0

(n ≥ 0). Then p is called an algebraic relation of the sequences fi(n). Observations:

slide-6
SLIDE 6

Algebraic Relations – Elementary Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Suppose that p(x1, . . . , xm) ∈

[x1, . . . , xm] is such that

p

  • f1(n), f2(n), . . . , fm(n)
  • = 0

(n ≥ 0). Then p is called an algebraic relation of the sequences fi(n). Observations:

◮ If p and q are algebraic relations, then so is p + q

slide-7
SLIDE 7

Algebraic Relations – Elementary Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Suppose that p(x1, . . . , xm) ∈

[x1, . . . , xm] is such that

p

  • f1(n), f2(n), . . . , fm(n)
  • = 0

(n ≥ 0). Then p is called an algebraic relation of the sequences fi(n). Observations:

◮ If p and q are algebraic relations, then so is p + q ◮ If p is an algebraic relation, then so is r ·p for any polynomial r

slide-8
SLIDE 8

Algebraic Relations – Elementary Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Suppose that p(x1, . . . , xm) ∈

[x1, . . . , xm] is such that

p

  • f1(n), f2(n), . . . , fm(n)
  • = 0

(n ≥ 0). Then p is called an algebraic relation of the sequences fi(n). Observations:

◮ If p and q are algebraic relations, then so is p + q ◮ If p is an algebraic relation, then so is r ·p for any polynomial r ◮ If ps is an algebraic relation, then so is p

slide-9
SLIDE 9

Algebraic Relations – Elementary Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Suppose that p(x1, . . . , xm) ∈

[x1, . . . , xm] is such that

p

  • f1(n), f2(n), . . . , fm(n)
  • = 0

(n ≥ 0). Then p is called an algebraic relation of the sequences fi(n). Observations:

◮ If p and q are algebraic relations, then so is p + q ◮ If p is an algebraic relation, then so is r ·p for any polynomial r ◮ If ps is an algebraic relation, then so is p

Consequence: The set of all algebraic relations forms a radical ideal.

slide-10
SLIDE 10

Algebraic Relations – Algebraist’s Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.
slide-11
SLIDE 11

Algebraic Relations – Algebraist’s Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Consider the ring homomorphism defined via φ:

[x1, . . . , xm] →
  • ,
slide-12
SLIDE 12

Algebraic Relations – Algebraist’s Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Consider the ring homomorphism defined via φ:

[x1, . . . , xm] →
  • ,

c → (c)n≥0 (c ∈

),
slide-13
SLIDE 13

Algebraic Relations – Algebraist’s Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Consider the ring homomorphism defined via φ:

[x1, . . . , xm] →
  • ,

c → (c)n≥0 (c ∈

),

xi → (fi(n))n≥0 (i = 1, . . . , m).

slide-14
SLIDE 14

Algebraic Relations – Algebraist’s Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Consider the ring homomorphism defined via φ:

[x1, . . . , xm] →
  • ,

c → (c)n≥0 (c ∈

),

xi → (fi(n))n≥0 (i = 1, . . . , m). The ideal of algebraic relations among f1(n), . . . , fm(n) is precisely the kernel of this map, ker φ.

slide-15
SLIDE 15

Algebraic Relations – Geometer’s Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.
slide-16
SLIDE 16

Algebraic Relations – Geometer’s Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Consider the set of points P := { (f1(n), . . . , fm(n)) : n ∈

} ⊆ m.
slide-17
SLIDE 17

Algebraic Relations – Geometer’s Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Consider the set of points P := { (f1(n), . . . , fm(n)) : n ∈

} ⊆ m.

The ideal of algebraic relations among f1(n), . . . , fm(n) is precisely the vanishing ideal of this set, I(P).

slide-18
SLIDE 18

Algebraic Relations – Geometer’s Viewpoint

Let f1(n), f2(n), . . . , fm(n) be sequences in a field

.

Consider the set of points P := { (f1(n), . . . , fm(n)) : n ∈

} ⊆ m.

The ideal of algebraic relations among f1(n), . . . , fm(n) is precisely the vanishing ideal of this set, I(P). Summary: {p ∈

[x1, . . . , xn] : p(f1, . . . , fm) ≡ 0} = ker φ = I(P).
slide-19
SLIDE 19

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).
slide-20
SLIDE 20

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0.

slide-21
SLIDE 21

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0. In other words: Find the ideal a

[x, y] of algebraic relations

among (Fn)n≥0 and (Fn+1)n≥0.

slide-22
SLIDE 22

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0. In other words: Find the ideal a

[x, y] of algebraic relations

among (Fn)n≥0 and (Fn+1)n≥0. Answer: a = (x2 − xy − y2 − 1)(x2 − xy − y2 + 1).

slide-23
SLIDE 23

Example: Fibonacci Numbers

Answer: a = (x2 − xy − y2 − 1)(x2 − xy − y2 + 1).

slide-24
SLIDE 24

Example: Fibonacci Numbers

Answer: a = (x2 − xy − y2 − 1)(x2 − xy − y2 + 1).

2 4 6 8

  • 1

1 2 3 4 5

This is V (a).

slide-25
SLIDE 25

Example: Fibonacci Numbers

Answer: a = (x2 − xy − y2 − 1)(x2 − xy − y2 + 1).

2 4 6 8

  • 1

1 2 3 4 5

This is V (a). It consists of two irreducible com- ponents.

slide-26
SLIDE 26

Example: Fibonacci Numbers

Answer: a = (x2 − xy − y2 − 1)(x2 − xy − y2 + 1).

2 4 6 8

  • 1

1 2 3 4 5

This is V (a). It consists of two irreducible com- ponents. Each component carries “half” of the points (Fn+1, Fn)

slide-27
SLIDE 27

Example: Fibonacci Numbers

Answer: a = (x2 − xy − y2 − 1)(x2 − xy − y2 + 1).

2 4 6 8

  • 1

1 2 3 4 5

This is V (a). It consists of two irreducible com- ponents. Each component carries “half” of the points (Fn+1, Fn) Based on the geometric interpretation, it is straightforward to prove that a is really the ideal claimed above.

slide-28
SLIDE 28

Relevance for Computer Algebra

We desire algorithms

slide-29
SLIDE 29

Relevance for Computer Algebra

We desire algorithms

◮ proving

slide-30
SLIDE 30

Relevance for Computer Algebra

We desire algorithms

◮ proving ◮ finding

slide-31
SLIDE 31

Relevance for Computer Algebra

We desire algorithms

◮ proving ◮ finding ◮ using

slide-32
SLIDE 32

Relevance for Computer Algebra

We desire algorithms

◮ proving ◮ finding ◮ using

algebraic relations for specific classes of sequences.

slide-33
SLIDE 33

Relevance for Computer Algebra

We desire algorithms

◮ proving ◮ finding ◮ using

algebraic relations for specific classes of sequences. Problem: Given sequences f1(n), . . . , fm(n) and p ∈

[x1, . . . , xn],

decide ∀ n ≥ 0 : p

  • f1(n), . . . , fm(n)
  • = 0
slide-34
SLIDE 34

Relevance for Computer Algebra

We desire algorithms

◮ proving ◮ finding ◮ using

algebraic relations for specific classes of sequences. Problem: Given sequences f1(n), . . . , fm(n) and p ∈

[x1, . . . , xn],

decide ∀ n ≥ 0 : p

  • f1(n), . . . , fm(n)
  • = 0

(e.g., gfun can do this for fi(n) P-finite.)

slide-35
SLIDE 35

Relevance for Computer Algebra

We desire algorithms

◮ proving ◮ finding ◮ using

algebraic relations for specific classes of sequences. Applications: Summation/Integration of special functions.

slide-36
SLIDE 36

Relevance for Computer Algebra

We desire algorithms

◮ proving ◮ finding ◮ using

algebraic relations for specific classes of sequences. Applications: Summation/Integration of special functions. We have an algorithm that can find identities like

n

  • k=0

((k − √ k + 1)Hk + 1) √ k! = (1 + (n + 1)Hn) √ n! which depend on exploiting the relation √n2 − n = 0.

slide-37
SLIDE 37

Relevance for Computer Algebra

We desire algorithms

◮ proving ◮ finding ◮ using

algebraic relations for specific classes of sequences. Applications: Summation/Integration of special functions. We want to have an algorithm that can find identities like

n

  • k=0

((−1)k−1)x+(−1)k+1 2Uk(x)+(−1)k−1

= (1−2x)Un(x)+(−1)n+Un+1(x)

2Un(x)+(−1)n−1

which also depend on nontrivial relations.

slide-38
SLIDE 38

Relevance for Computer Algebra

We desire algorithms

◮ proving ◮ finding ◮ using

algebraic relations for specific classes of sequences. Today we discuss finding.

slide-39
SLIDE 39

Problem Specification

GIVEN: Sequences f1(n), . . . , fm(n) in

slide-40
SLIDE 40

Problem Specification

GIVEN: Sequences f1(n), . . . , fm(n) in

  • FIND: Polynomials b1, . . . , br ∈
[x1, . . . , xm] such that

b1, . . . , br

[x1, . . . , xm]

is the ideal of algebraic relations among the fi(n).

slide-41
SLIDE 41

Problem Specification

GIVEN: Sequences f1(n), . . . , fm(n) in

  • FIND: Polynomials b1, . . . , br ∈
[x1, . . . , xm] such that

b1, . . . , br

[x1, . . . , xm]

is the ideal of algebraic relations among the fi(n). Of course, “given sequences” makes only sense when attention is restricted to particular classes of sequences that admit finitary representations, e.g., by defining recurrence equations.

slide-42
SLIDE 42

A Brute Force Attack

slide-43
SLIDE 43

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences.

slide-44
SLIDE 44

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations.

slide-45
SLIDE 45

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations. By just making an ansatz.

slide-46
SLIDE 46

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations. By just making an ansatz. Consider the polynomial p(x1, x2) = a0x2

1 + a1x1x2 + a2x2 2 + a3x1 + a4x2 + a5

with undetermined coefficients a0, a1, . . . , a5.

slide-47
SLIDE 47

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations. By just making an ansatz. For p(x1, x2) to be an algebraic relation of f1(n), f2(n), we must have ∀n ≥ 0 : p(f1(n), f2(n)) = 0

slide-48
SLIDE 48

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations. By just making an ansatz. In particular: p(f1(0), f2(0)) = 0 p(f1(1), f2(1)) = 0 p(f1(2), f2(2)) = 0 . . . p(f1(5), f2(5)) = 0

slide-49
SLIDE 49

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations. By just making an ansatz. In particular: a0f1(0)2 + a1f1(0)f2(0) + a2f2(0)2 + a3f1(0) + a4f2(0) + a5 = 0 a0f1(1)2 + a1f1(1)f2(1) + a2f2(1)2 + a3f1(1) + a4f2(1) + a5 = 0 a0f1(2)2 + a1f1(2)f2(2) + a2f2(2)2 + a3f1(2) + a4f2(2) + a5 = 0 . . . a0f1(5)2 + a1f1(5)f2(5) + a2f2(5)2 + a3f1(5) + a4f2(5) + a5 = 0

slide-50
SLIDE 50

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations. By just making an ansatz. Solutions of the linear system give relation candidates.

slide-51
SLIDE 51

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations. By just making an ansatz. Solutions of the linear system give relation candidates. True relations can be detected by the prover.

slide-52
SLIDE 52

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations. By just making an ansatz. Solutions of the linear system give relation candidates. True relations can be detected by the prover. If there are fake ones, repeat with more sample points.

slide-53
SLIDE 53

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations. By just making an ansatz. Solutions of the linear system give relation candidates. True relations can be detected by the prover. If there are fake ones, repeat with more sample points. If sufficiently many points are taken into account, no fake relations will arise.

slide-54
SLIDE 54

A Brute Force Attack

Suppose we know how to prove algebraic relations for a certain class of sequences. Then we can also find algebraic relations. By just making an ansatz. Solutions of the linear system give relation candidates. True relations can be detected by the prover. If there are fake ones, repeat with more sample points. If sufficiently many points are taken into account, no fake relations will arise. For speed-up, use the Buchberger-M¨

  • ller algorithm.
slide-55
SLIDE 55

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0. In other words: Find the ideal a

[x, y] of algebraic relations

among (Fn)n≥0 and (Fn+1)n≥0.

slide-56
SLIDE 56
slide-57
SLIDE 57

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0. In other words: Find the ideal a

[x, y] of algebraic relations

among (Fn)n≥0 and (Fn+1)n≥0.

slide-58
SLIDE 58

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0. In other words: Find the ideal a

[x, y] of algebraic relations

among (Fn)n≥0 and (Fn+1)n≥0. Answer: a ⊇ (x2 − xy − y2 − 1)(x2 − xy − y2 + 1).

slide-59
SLIDE 59

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0. In other words: Find the ideal a

[x, y] of algebraic relations

among (Fn)n≥0 and (Fn+1)n≥0. Answer: a ⊇ (x2 − xy − y2 − 1)(x2 − xy − y2 + 1). Note: We can determine all algebraic relations up to a prescribed degree, but we get no information about existence/non-existence

  • f higher degree relations.
slide-60
SLIDE 60

Example: Somos Sequences

A sequence Cn satisfying a nonlinear recurrence of the form Cn+rCn = α1Cn+r−1Cn+1 + α2Cn+r−2Cn+2 + · · · · · · + α⌊r/2⌋Cn+r−⌊r/2⌋Cn+⌊r/2⌋ with r ∈

fixed and α1, . . . , α⌊r/2⌋ is called a Somos sequence of
  • rder r.
slide-61
SLIDE 61

Example: Somos Sequences

A sequence Cn satisfying a nonlinear recurrence of the form Cn+rCn = α1Cn+r−1Cn+1 + α2Cn+r−2Cn+2 + · · · · · · + α⌊r/2⌋Cn+r−⌊r/2⌋Cn+⌊r/2⌋ with r ∈

fixed and α1, . . . , α⌊r/2⌋ is called a Somos sequence of
  • rder r.

Question: Can a given Somos sequence of order r also be viewed as a Somos sequence for some different order r′?

slide-62
SLIDE 62

Example: Somos Sequences

A sequence Cn satisfying a nonlinear recurrence of the form Cn+rCn = α1Cn+r−1Cn+1 + α2Cn+r−2Cn+2 + · · · · · · + α⌊r/2⌋Cn+r−⌊r/2⌋Cn+⌊r/2⌋ with r ∈

fixed and α1, . . . , α⌊r/2⌋ is called a Somos sequence of
  • rder r.

Question: Can a given Somos sequence of order r also be viewed as a Somos sequence for some different order r′? Example: Consider Cn defined via Cn+4Cn = Cn+3Cn+1 + C2

n+2,

C0 = C1 = C2 = C3 = 1. Does this sequence satisfy a Somos-like recurrence of orders 5, 6, 7, 8?

slide-63
SLIDE 63

Example: Somos Sequences

Idea: Compute the algebraic relations of total degree ≤ 2 among the terms Cn, Cn+1, . . . , Cn+7, Cn+8.

slide-64
SLIDE 64

Example: Somos Sequences

Idea: Compute the algebraic relations of total degree ≤ 2 among the terms Cn, Cn+1, . . . , Cn+7, Cn+8. Let a = p1, . . . , pk

[x0, . . . , x8] be a Gr¨
  • bner basis for the

ideal generated by the quadratic relations.

slide-65
SLIDE 65

Example: Somos Sequences

Idea: Compute the algebraic relations of total degree ≤ 2 among the terms Cn, Cn+1, . . . , Cn+7, Cn+8. Let a = p1, . . . , pk

[x0, . . . , x8] be a Gr¨
  • bner basis for the

ideal generated by the quadratic relations. Make an ansatz with undetermined coefficients for the desired relation, e.g., Cn+5Cn = a1Cn+4Cn+1 + a2Cn+3Cn+2

slide-66
SLIDE 66

Example: Somos Sequences

Idea: Compute the algebraic relations of total degree ≤ 2 among the terms Cn, Cn+1, . . . , Cn+7, Cn+8. Let a = p1, . . . , pk

[x0, . . . , x8] be a Gr¨
  • bner basis for the

ideal generated by the quadratic relations. Make an ansatz with undetermined coefficients for the desired relation, e.g., Cn+5Cn = a1Cn+4Cn+1 + a2Cn+3Cn+2 Reduction modulo a gives x5x0 − a1x4x1 − a2x3x2 − →a (1 − 1

5a2)x0x5 − (a1 + 1 5a2)x1x4

slide-67
SLIDE 67

Example: Somos Sequences

Idea: Compute the algebraic relations of total degree ≤ 2 among the terms Cn, Cn+1, . . . , Cn+7, Cn+8. Let a = p1, . . . , pk

[x0, . . . , x8] be a Gr¨
  • bner basis for the

ideal generated by the quadratic relations. Make an ansatz with undetermined coefficients for the desired relation, e.g., Cn+5Cn = a1Cn+4Cn+1 + a2Cn+3Cn+2 Reduction modulo a gives x5x0 − a1x4x1 − a2x3x2 − →a (1 − 1

5a2)x0x5 − (a1 + 1 5a2)x1x4

Comparing coefficients gives a1 = −1, a2 = 5.

slide-68
SLIDE 68

What about a Degree Bound?

Note: If the chosen degree bound d is sufficiently large then we get a basis for the whole ideal.

slide-69
SLIDE 69

What about a Degree Bound?

Note: If the chosen degree bound d is sufficiently large then we get a basis for the whole ideal. But: What does “sufficiently large” mean?

slide-70
SLIDE 70

What about a Degree Bound?

Note: If the chosen degree bound d is sufficiently large then we get a basis for the whole ideal. But: What does “sufficiently large” mean? In particular: Can we compute a “sufficiently large” d?

slide-71
SLIDE 71

What about a Degree Bound?

Note: If the chosen degree bound d is sufficiently large then we get a basis for the whole ideal. But: What does “sufficiently large” mean? In particular: Can we compute a “sufficiently large” d? well, hardly ever. . .

slide-72
SLIDE 72

What about a Degree Bound?

  • Theorem. If a class C of sequences is such that
slide-73
SLIDE 73

What about a Degree Bound?

  • Theorem. If a class C of sequences is such that

◮ n ∈ C

slide-74
SLIDE 74

What about a Degree Bound?

  • Theorem. If a class C of sequences is such that

◮ n ∈ C ◮ f(n) ∈ C ⇒ n k=0 f(k) ∈ C

slide-75
SLIDE 75

What about a Degree Bound?

  • Theorem. If a class C of sequences is such that

◮ n ∈ C ◮ f(n) ∈ C ⇒ n k=0 f(k) ∈ C ◮ There is an algorithm that produces for arbitrary given

f1(n), . . . , fm(n) ∈ C a basis for their ideal of algebraic relations.

slide-76
SLIDE 76

What about a Degree Bound?

  • Theorem. If a class C of sequences is such that

◮ n ∈ C ◮ f(n) ∈ C ⇒ n k=0 f(k) ∈ C ◮ There is an algorithm that produces for arbitrary given

f1(n), . . . , fm(n) ∈ C a basis for their ideal of algebraic relations. Then there exists an algorithm that decides for arbitrary given f(n) ∈ C whether ∃n ≥ 0 : f(n) = 0.

slide-77
SLIDE 77

What about a Degree Bound?

  • Theorem. If a class C of sequences is such that

◮ n ∈ C ◮ f(n) ∈ C ⇒ n k=0 f(k) ∈ C ◮ There is an algorithm that produces for arbitrary given

f1(n), . . . , fm(n) ∈ C a basis for their ideal of algebraic relations. Then there exists an algorithm that decides for arbitrary given f(n) ∈ C whether ∃n ≥ 0 : f(n) = 0. For sufficiently rich classes C there is no hope for such an algorithm.

slide-78
SLIDE 78

What about a Degree Bound?

  • Theorem. If a class C of sequences is such that

◮ n ∈ C ◮ f(n) ∈ C ⇒ n k=0 f(k) ∈ C ◮ There is an algorithm that produces for arbitrary given

f1(n), . . . , fm(n) ∈ C a basis for their ideal of algebraic relations. Then there exists an algorithm that decides for arbitrary given f(n) ∈ C whether ∃n ≥ 0 : f(n) = 0. For sufficiently rich classes C there is no hope for such an algorithm. If we insist in a complete algorithm, we have to focus on smaller classes.

slide-79
SLIDE 79

C-Finite Sequences

(joint work with B. Zimmermann)

slide-80
SLIDE 80

C-finite Sequences

Recall: f(n) is C-finite if f(n + r) = a0f(n) + a1f(n + 1) + · · · + ar−1f(n + r − 1) for some constants a0, . . . , ar−1 ∈

.
slide-81
SLIDE 81

C-finite Sequences

Recall: f(n) is C-finite if f(n + r) = a0f(n) + a1f(n + 1) + · · · + ar−1f(n + r − 1) for some constants a0, . . . , ar−1 ∈

.

Examples:

slide-82
SLIDE 82

C-finite Sequences

Recall: f(n) is C-finite if f(n + r) = a0f(n) + a1f(n + 1) + · · · + ar−1f(n + r − 1) for some constants a0, . . . , ar−1 ∈

.

Examples:

◮ n, n2, n3, . . .

slide-83
SLIDE 83

C-finite Sequences

Recall: f(n) is C-finite if f(n + r) = a0f(n) + a1f(n + 1) + · · · + ar−1f(n + r − 1) for some constants a0, . . . , ar−1 ∈

.

Examples:

◮ n, n2, n3, . . . ◮ 2n, 3n, 4n, . . .

slide-84
SLIDE 84

C-finite Sequences

Recall: f(n) is C-finite if f(n + r) = a0f(n) + a1f(n + 1) + · · · + ar−1f(n + r − 1) for some constants a0, . . . , ar−1 ∈

.

Examples:

◮ n, n2, n3, . . . ◮ 2n, 3n, 4n, . . . ◮ Fn, Un(x), . . .

slide-85
SLIDE 85

C-finite Sequences

Recall: f(n) is C-finite if f(n + r) = a0f(n) + a1f(n + 1) + · · · + ar−1f(n + r − 1) for some constants a0, . . . , ar−1 ∈

.

Recall: f(n) is C-finite if and only if f(n) = p1(n)φn

1 + p2(n)φn 2 + · · · + ps(n)φn s

(n ≥ 0) where φi are the roots of the characteristic polynomial xr − a0 − a1x − a2x2 − · · · − ar−1xr−1 and pi(n) is a polynomial whose degree is bounded by the multiplicity

  • f the root φi.
slide-86
SLIDE 86

Simple Examples

Example 1: n and 2n are algebraically independent.

slide-87
SLIDE 87

Simple Examples

Example 1: n and 2n are algebraically independent. (clear.)

slide-88
SLIDE 88

Simple Examples

Example 1: n and 2n are algebraically independent. (clear.) Example 2: n2 and n3 are algebraically dependent.

slide-89
SLIDE 89

Simple Examples

Example 1: n and 2n are algebraically independent. (clear.) Example 2: n2 and n3 are algebraically dependent. (by x3

1 − x2 2.)

slide-90
SLIDE 90

Simple Examples

Example 1: n and 2n are algebraically independent. (clear.) Example 2: n2 and n3 are algebraically dependent. (by x3

1 − x2 2.)

Example 3: (−1)n is algebraically dependent.

slide-91
SLIDE 91

Simple Examples

Example 1: n and 2n are algebraically independent. (clear.) Example 2: n2 and n3 are algebraically dependent. (by x3

1 − x2 2.)

Example 3: (−1)n is algebraically dependent. (by x2

1 − 1.)

slide-92
SLIDE 92

Simple Examples

Example 1: n and 2n are algebraically independent. (clear.) Example 2: n2 and n3 are algebraically dependent. (by x3

1 − x2 2.)

Example 3: (−1)n is algebraically dependent. (by x2

1 − 1.)

Example 4: 4n, 6n, 9n are algebraically dependent.

slide-93
SLIDE 93

Simple Examples

Example 1: n and 2n are algebraically independent. (clear.) Example 2: n2 and n3 are algebraically dependent. (by x3

1 − x2 2.)

Example 3: (−1)n is algebraically dependent. (by x2

1 − 1.)

Example 4: 4n, 6n, 9n are algebraically dependent. (by x1x3 − x2

2.)

slide-94
SLIDE 94

Simple Examples

Example 1: n and 2n are algebraically independent. (clear.) Example 2: n2 and n3 are algebraically dependent. (by x3

1 − x2 2.)

Example 3: (−1)n is algebraically dependent. (by x2

1 − 1.)

Example 4: 4n, 6n, 9n are algebraically dependent. (by x1x3 − x2

2.)

Example 5: 4n, 7n, 9n are algebraically independent.

slide-95
SLIDE 95

In General: Algebraic Relations of Exponentials

Theorem: Let φ1, . . . , φm ∈

slide-96
SLIDE 96

In General: Algebraic Relations of Exponentials

Theorem: Let φ1, . . . , φm ∈

and

L := { (c1, . . . , cm) : φc1

1 φc2 2 · · · φcm m = 1 } ⊆

m.
slide-97
SLIDE 97

In General: Algebraic Relations of Exponentials

Theorem: Let φ1, . . . , φm ∈

and

L := { (c1, . . . , cm) : φc1

1 φc2 2 · · · φcm m = 1 } ⊆

m.

This is a lattice.

slide-98
SLIDE 98

In General: Algebraic Relations of Exponentials

Theorem: Let φ1, . . . , φm ∈

and

L := { (c1, . . . , cm) : φc1

1 φc2 2 · · · φcm m = 1 } ⊆

m.

This is a lattice. Let I(L) := xc1

1 xc2 2 · · · xcm m − 1 : (c1, . . . , cm) ∈ L

[x1, . . . , xm]

be the corresponding lattice ideal. (It is understood that “denominators are cleared”.)

slide-99
SLIDE 99

In General: Algebraic Relations of Exponentials

Theorem: Let φ1, . . . , φm ∈

and

L := { (c1, . . . , cm) : φc1

1 φc2 2 · · · φcm m = 1 } ⊆

m.

This is a lattice. Let I(L) := xc1

1 xc2 2 · · · xcm m − 1 : (c1, . . . , cm) ∈ L

[x1, . . . , xm]

be the corresponding lattice ideal. (It is understood that “denominators are cleared”.) Let f0(n) = n and f1(n) = φn

1, f2(n) = φn 2, . . . , fm(n) = φn m.

slide-100
SLIDE 100

In General: Algebraic Relations of Exponentials

Theorem: Let φ1, . . . , φm ∈

and

L := { (c1, . . . , cm) : φc1

1 φc2 2 · · · φcm m = 1 } ⊆

m.

This is a lattice. Let I(L) := xc1

1 xc2 2 · · · xcm m − 1 : (c1, . . . , cm) ∈ L

[x1, . . . , xm]

be the corresponding lattice ideal. (It is understood that “denominators are cleared”.) Let f0(n) = n and f1(n) = φn

1, f2(n) = φn 2, . . . , fm(n) = φn m.

Then

slide-101
SLIDE 101

In General: Algebraic Relations of Exponentials

Theorem: Let φ1, . . . , φm ∈

and

L := { (c1, . . . , cm) : φc1

1 φc2 2 · · · φcm m = 1 } ⊆

m.

This is a lattice. Let I(L) := xc1

1 xc2 2 · · · xcm m − 1 : (c1, . . . , cm) ∈ L

[x1, . . . , xm]

be the corresponding lattice ideal. (It is understood that “denominators are cleared”.) Let f0(n) = n and f1(n) = φn

1, f2(n) = φn 2, . . . , fm(n) = φn m.

Then I(L)

[x0, . . . , xm]

is the ideal of algebraic relations among f0(n), . . . , fm(n).

slide-102
SLIDE 102

Relation to Summation-Theory

Remark: (for people familiar with difference fields)

slide-103
SLIDE 103

Relation to Summation-Theory

Remark: (for people familiar with difference fields) If

is a difference field and t1, t2, t3 are formal sums over , then

a new sum t4 = Σr(t1, t2, t3) can be adjoined to

(t1, t2, t3) only if

σ(g) − g = c1

  • σ(t1) − t1
  • + c2
  • σ(t2) − t2
  • + c3
  • σ(t3) − t3
  • + c4
  • r(t1, t2, t3)
  • has no solution (c1, c2, c3, c4; g) ∈
3 × .
slide-104
SLIDE 104

Relation to Summation-Theory

Remark: (for people familiar with difference fields) If

is a difference field and t1, t2, t3 are formal sums over , then

a new sum t4 = Σr(t1, t2, t3) can be adjoined to

(t1, t2, t3) only if

σ(g) − g = c1

  • σ(t1) − t1
  • + c2
  • σ(t2) − t2
  • + c3
  • σ(t3) − t3
  • + c4
  • r(t1, t2, t3)
  • has no solution (c1, c2, c3, c4; g) ∈
3 × . (Creative Telescoping.)
slide-105
SLIDE 105

Relation to Summation-Theory

Remark: (for people familiar with difference fields) If

is a difference field and t1, t2, t3 are formal products over , then

a new product t4 = Πr(t1, t2, t3) can be adjoined to

(t1, t2, t3) only

if σ(g) g = σ(t1) t1 c1σ(t2) t2 c2σ(t3) t3 c3 r(t1, t2, t3) c4 has no solution (c1, c2, c3, c4; g) ∈

3 × .
slide-106
SLIDE 106

Relation to Summation-Theory

Remark: (for people familiar with difference fields) If

is a difference field and t1, t2, t3 are formal products over , then

a new product t4 = Πr(t1, t2, t3) can be adjoined to

(t1, t2, t3) only

if σ(g) g = σ(t1) t1 c1σ(t2) t2 c2σ(t3) t3 c3 r(t1, t2, t3) c4 has no solution (c1, c2, c3, c4; g) ∈

3 × . (Multiplicative Creative

Telescoping.)

slide-107
SLIDE 107

Relation to Summation-Theory

Remark: (for people familiar with difference fields) If

is a difference field and t1, t2, t3 are formal products over , then

a new product t4 = Πr(t1, t2, t3) can be adjoined to

(t1, t2, t3) only

if σ(g) g = σ(t1) t1 c1σ(t2) t2 c2σ(t3) t3 c3 r(t1, t2, t3) c4 has no solution (c1, c2, c3, c4; g) ∈

3 × . (Multiplicative Creative

Telescoping.) The theorem of the previous slide may be viewed as a corollary to the second case, with

= (constants) and the ti being

exponentials.

slide-108
SLIDE 108

Relation to Summation-Theory

Remark: (for people familiar with difference fields) If

is a difference field and t1, t2, t3 are formal products over , then

a new product t4 = Πr(t1, t2, t3) can be adjoined to

(t1, t2, t3) only

if σ(g) g = σ(t1) t1 c1σ(t2) t2 c2σ(t3) t3 c3 r(t1, t2, t3) c4 has no solution (c1, c2, c3, c4; g) ∈

3 × . (Multiplicative Creative

Telescoping.) The theorem of the previous slide may be viewed as a corollary to the second case, with

= (constants) and the ti being
  • exponentials. But it can be proven also by an elementary

argument.

slide-109
SLIDE 109

Arbitrary C-Finite Sequences

Let f1(n), . . . , fm(n) be C-finite sequences (given via recurrence and initial values). We wish to compute the ideal a

[x1, . . . , xm] of their algebraic relations.
slide-110
SLIDE 110

Arbitrary C-Finite Sequences

Let f1(n), . . . , fm(n) be C-finite sequences (given via recurrence and initial values). We wish to compute the ideal a

[x1, . . . , xm] of their algebraic relations.
  • 1. Write the sequences in the form

fi(n) = pi,0(n)φn

1 + · · · + pi,l(n)φn l

for certain numbers φj and polynomials pi,l(n).

slide-111
SLIDE 111

Arbitrary C-Finite Sequences

Let f1(n), . . . , fm(n) be C-finite sequences (given via recurrence and initial values). We wish to compute the ideal a

[x1, . . . , xm] of their algebraic relations.
  • 1. Write the sequences in the form

fi(n) = pi,0(n)φn

1 + · · · + pi,l(n)φn l

for certain numbers φj and polynomials pi,l(n). This is easy.

slide-112
SLIDE 112

Arbitrary C-Finite Sequences

Let f1(n), . . . , fm(n) be C-finite sequences (given via recurrence and initial values). We wish to compute the ideal a

[x1, . . . , xm] of their algebraic relations.
  • 2. Compute the ideal

b1, . . . , br

[y0, y1, . . . , yl]
  • f all relations among n, φn

1, . . . , φn l .

slide-113
SLIDE 113

Arbitrary C-Finite Sequences

Let f1(n), . . . , fm(n) be C-finite sequences (given via recurrence and initial values). We wish to compute the ideal a

[x1, . . . , xm] of their algebraic relations.
  • 2. Compute the ideal

b1, . . . , br

[y0, y1, . . . , yl]
  • f all relations among n, φn

1, . . . , φn l .

This only requires finding a lattice basis of L = { (c1, . . . , cl) : φc1

1 · · · φcl l = 1 }.

slide-114
SLIDE 114

Arbitrary C-Finite Sequences

Let f1(n), . . . , fm(n) be C-finite sequences (given via recurrence and initial values). We wish to compute the ideal a

[x1, . . . , xm] of their algebraic relations.
  • 2. Compute the ideal

b1, . . . , br

[y0, y1, . . . , yl]
  • f all relations among n, φn

1, . . . , φn l .

This only requires finding a lattice basis of L = { (c1, . . . , cl) : φc1

1 · · · φcl l = 1 }.

For φj ∈

this is easy.
slide-115
SLIDE 115

Arbitrary C-Finite Sequences

Let f1(n), . . . , fm(n) be C-finite sequences (given via recurrence and initial values). We wish to compute the ideal a

[x1, . . . , xm] of their algebraic relations.
  • 2. Compute the ideal

b1, . . . , br

[y0, y1, . . . , yl]
  • f all relations among n, φn

1, . . . , φn l .

This only requires finding a lattice basis of L = { (c1, . . . , cl) : φc1

1 · · · φcl l = 1 }.

For φj ∈ ¯

this can be done with LLL and diophantine approxima-

tion (Ge’s algorithm).

slide-116
SLIDE 116

Arbitrary C-Finite Sequences

Let f1(n), . . . , fm(n) be C-finite sequences (given via recurrence and initial values). We wish to compute the ideal a

[x1, . . . , xm] of their algebraic relations.
  • 3. Form the ideal

a :=

  • x1 − (p1,0(y0)y1 + · · · + p1,l(y0)yl),

x2 − (p2,0(y0)y1 + · · · + p2,l(y0)yl), . . . xm − (pm,0(y0)y1 + · · · + pm,l(y0)yl), b1, . . . , br

  • [x1, . . . , xm, y0, . . . , yl]
slide-117
SLIDE 117

Arbitrary C-Finite Sequences

Let f1(n), . . . , fm(n) be C-finite sequences (given via recurrence and initial values). We wish to compute the ideal a

[x1, . . . , xm] of their algebraic relations.
  • 4. Return

a ∩

[x1, . . . , xm]
slide-118
SLIDE 118

Arbitrary C-Finite Sequences

Let f1(n), . . . , fm(n) be C-finite sequences (given via recurrence and initial values). We wish to compute the ideal a

[x1, . . . , xm] of their algebraic relations.
  • 4. Return

a ∩

[x1, . . . , xm]

These are precisely the desired relations.

slide-119
SLIDE 119

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0. In other words: Find the ideal a

[x, y] of algebraic relations

among (Fn)n≥0 and (Fn+1)n≥0.

slide-120
SLIDE 120
slide-121
SLIDE 121

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0. In other words: Find the ideal a

[x, y] of algebraic relations

among (Fn)n≥0 and (Fn+1)n≥0.

slide-122
SLIDE 122

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0. In other words: Find the ideal a

[x, y] of algebraic relations

among (Fn)n≥0 and (Fn+1)n≥0. Answer: a = (x2 − xy − y2 − 1)(x2 − xy − y2 + 1).

slide-123
SLIDE 123

Example: Fibonacci Numbers

Let Fn denote the nth Fibonacci number (n ∈

).

Exercise 6.81: (Graham/Knuth/Patashnik) Let P(x, y) be a polynomial in x and y with integer coefficients. Find a necessary and sufficient condition that P(Fn+1, Fn) = 0 for all n ≥ 0. In other words: Find the ideal a

[x, y] of algebraic relations

among (Fn)n≥0 and (Fn+1)n≥0. Answer: a = (x2 − xy − y2 − 1)(x2 − xy − y2 + 1). Note: We can determine all algebraic relations with this algorithm.

slide-124
SLIDE 124

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

slide-125
SLIDE 125

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1. 1. Fn = 1 √ 5 1 + √ 5 2 n − 1 √ 5 1 − √ 5 2 n Fn+1 = 5 + √ 5 10 1 + √ 5 2 n + 5 − √ 5 10 1 − √ 5 2 n

slide-126
SLIDE 126

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1. 1. Fn = 1 √ 5 1 + √ 5 2 n − 1 √ 5 1 − √ 5 2 n Fn+1 = 5 + √ 5 10 1 + √ 5 2 n + 5 − √ 5 10 1 − √ 5 2 n So φ1 = 1

2(1 +

√ 5) and φ2 = 1

2(1 −

√ 5).

slide-127
SLIDE 127

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

  • 2. We have φ1φ2 = −1
slide-128
SLIDE 128

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

  • 2. We have φ1φ2 = −1, so φ2

1φ2 2 = 1

slide-129
SLIDE 129

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

  • 2. We have φ1φ2 = −1, so φ2

1φ2 2 = 1, so

y2

1y2 2 − 1 ¯

[y1, . . . , yl]

are the relations among n, φn

1, φn 2.

slide-130
SLIDE 130

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

  • 3. Next we set

a :=

  • x1 −

1

√ 5y1 − 1 √ 5y2

  • ,

x2 − 5+

√ 5 10 y1 + 5− √ 5 10 y2

  • ,

y2

1y2 2 − 1

  • ¯
[x1, x2, y0, y1, y2]
slide-131
SLIDE 131

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

  • 4. We obtain

a ∩ ¯

[x1, x2]
slide-132
SLIDE 132

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

  • 4. We obtain

a ∩ ¯

[x1, x2]

= (x2

1 − x1x2 − x2 2 − 1)(x2 1 − x1x2 − x2 2 + 1).

slide-133
SLIDE 133

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

  • 4. We obtain

a ∩ ¯

[x1, x2]

= (x2

1 − x1x2 − x2 2 − 1)(x2 1 − x1x2 − x2 2 + 1).

Note: Intermediate algebraic field extensions always cancel out in the final result.

slide-134
SLIDE 134

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

  • 4. We obtain

a ∩ ¯

[x1, . . . , xm]

= (x2

1 − x1x2 − x2 2 − 1)(x2 1 − x1x2 − x2 2 + 1).

Note: In this example the final elimination just amounts to a linear transform:

slide-135
SLIDE 135

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

  • 4. We obtain

a ∩ ¯

[x1, . . . , xm]

= (x2

1 − x1x2 − x2 2 − 1)(x2 1 − x1x2 − x2 2 + 1).

Note: In this example the final elimination just amounts to a linear transform:

2 4 6 8

  • 1

1 2 3 4 5

− →

2 4 6 8

  • 1

1 2 3 4 5

V (y2

1y2 2 − 1)

V (a)

slide-136
SLIDE 136

Example: Fibonacci Numbers

en detail: Fn+2 = Fn + Fn+1, F0 = 0, F1 = 1.

  • 4. We obtain

a ∩ ¯

[x1, . . . , xm]

= (x2

1 − x1x2 − x2 2 − 1)(x2 1 − x1x2 − x2 2 + 1).

Note: In this example the final elimination just amounts to a linear transform:

2 4 6 8

  • 1

1 2 3 4 5

− →

2 4 6 8

  • 1

1 2 3 4 5

V (y2

1y2 2 − 1)

V (a)

slide-137
SLIDE 137

Multivariate Sequences

A sequence f :

d → is multi-C-finite if it satisfies a C-finite

recurrence equation in every direction.

slide-138
SLIDE 138

Multivariate Sequences

A sequence f :

d → is multi-C-finite if it satisfies a C-finite

recurrence equation in every direction. Multi-C-finite sequences also have closed forms in terms of polynomials and exponentials.

slide-139
SLIDE 139

Multivariate Sequences

A sequence f :

d → is multi-C-finite if it satisfies a C-finite

recurrence equation in every direction. Multi-C-finite sequences also have closed forms in terms of polynomials and exponentials. For example, if f(n, m) is such that f(0, 0) = f(0, 1) = 1 and f(n + 2, m) = 4f(n + 1, m) − 4f(n, m) f(n, m + 1) = 5f(n, m), then f(n, m) = (1 − 1

2n)2n5m

slide-140
SLIDE 140

Multivariate Sequences

A sequence f :

d → is multi-C-finite if it satisfies a C-finite

recurrence equation in every direction. Multi-C-finite sequences also have closed forms in terms of polynomials and exponentials. For example, if f(n, m) is such that f(0, 0) = f(0, 1) = 1 and f(n + 2, m) = 4f(n + 1, m) − 4f(n, m) f(n, m + 1) = 5f(n, m), then f(n, m) = (1 − 1

2n)2n5m

Algebraic relations among multi-C-finite sequences can be found in very much the same way as for univariate sequences.

slide-141
SLIDE 141
slide-142
SLIDE 142

Some Funny Applications

slide-143
SLIDE 143

Some Funny Applications

Proving Identities For deciding p(Fn, Fn+1) = 0 for a given polynomial p, compute a normal form of p wrt. a Gr¨

  • bner basis of the ideal of algebraic

relations.

slide-144
SLIDE 144

Some Funny Applications

Proving Identities For deciding p(Fn, Fn+1) = 0 for a given polynomial p, compute a normal form of p wrt. a Gr¨

  • bner basis of the ideal of algebraic

relations. (This makes only sense if you have many p for the same sequences.)

slide-145
SLIDE 145

Some Funny Applications

“Express something in terms of something else” Given f(n) and g1(n), . . . , gm(n), is there a formula f(n) = A

  • g1(n), . . . , gm(n)
  • (n ≥ 0)

for some polynomial (or rational function, or algebraic function) A?

slide-146
SLIDE 146

Some Funny Applications

“Express something in terms of something else” Given f(n) and g1(n), . . . , gm(n), is there a formula f(n) = A

  • g1(n), . . . , gm(n)
  • (n ≥ 0)

for some polynomial (or rational function, or algebraic function) A? Compute the algebraic relations among f(n) and the gi(n).

slide-147
SLIDE 147

Some Funny Applications

“Express something in terms of something else” Given f(n) and g1(n), . . . , gm(n), is there a formula f(n) = A

  • g1(n), . . . , gm(n)
  • (n ≥ 0)

for some polynomial (or rational function, or algebraic function) A? Compute the algebraic relations among f(n) and the gi(n). Consider a Gr¨

  • bner basis with respect to a block ordering that as-

signs highest weight to the variable corresponding to f(n).

slide-148
SLIDE 148

Some Funny Applications

“Express something in terms of something else” Given f(n) and g1(n), . . . , gm(n), is there a formula f(n) = A

  • g1(n), . . . , gm(n)
  • (n ≥ 0)

for some polynomial (or rational function, or algebraic function) A? Compute the algebraic relations among f(n) and the gi(n). Consider a Gr¨

  • bner basis with respect to a block ordering that as-

signs highest weight to the variable corresponding to f(n). Inspect polynomial with least degree with respect to that variable appearing in the Gr¨

  • bner basis.
slide-149
SLIDE 149

Some Funny Applications

“Express something in terms of something else” Let f(n) = n

k=0

n

k

  • Fn+k. (This is C-finite, order 2)
slide-150
SLIDE 150

Some Funny Applications

“Express something in terms of something else” Let f(n) = n

k=0

n

k

  • Fn+k. (This is C-finite, order 2)

The ideal of relations among f(n), Fn, Fn+1 contains x0 − x1(2x2

1 − 3x1x2 + 3x2 2)

slide-151
SLIDE 151

Some Funny Applications

“Express something in terms of something else” Let f(n) = n

k=0

n

k

  • Fn+k. (This is C-finite, order 2)

The ideal of relations among f(n), Fn, Fn+1 contains x0 − x1(2x2

1 − 3x1x2 + 3x2 2)

Consequently, f(n) = Fn(2F 2

n − 3FnFn+1 + 3F 2 n+1).

slide-152
SLIDE 152

Some Funny Applications

“Express something in terms of something else” Let f(n) = n

k=0

n

k

  • F2k. (This is C-finite, order 2)
slide-153
SLIDE 153

Some Funny Applications

“Express something in terms of something else” Let f(n) = n

k=0

n

k

  • F2k. (This is C-finite, order 2)

No polynomial in the Gr¨

  • bner basis for the ideal of relations among

f(n), Fn, Fn+1 involves x0.

slide-154
SLIDE 154

Some Funny Applications

“Express something in terms of something else” Let f(n) = n

k=0

n

k

  • F2k. (This is C-finite, order 2)

No polynomial in the Gr¨

  • bner basis for the ideal of relations among

f(n), Fn, Fn+1 involves x0. Consequently, the sum f(n) has no closed form in terms of Fibonacci numbers.

slide-155
SLIDE 155

Some Funny Applications

Divisibility Properties and Modular Identities How to show F3n+1 ≡ F 3

n+1 mod Fn (n ≥ 0)?

slide-156
SLIDE 156

Some Funny Applications

Divisibility Properties and Modular Identities How to show F3n+1 ≡ F 3

n+1 mod Fn (n ≥ 0)?

Compute the ideal a of all relations among F3n+1, Fn+1, Fn.

slide-157
SLIDE 157

Some Funny Applications

Divisibility Properties and Modular Identities How to show F3n+1 ≡ F 3

n+1 mod Fn (n ≥ 0)?

Compute the ideal a of all relations among F3n+1, Fn+1, Fn. Next, a + x2 = x2, x1x3 − 1, x2

3 − x2 1, x3 1 − x3.

slide-158
SLIDE 158

Some Funny Applications

Divisibility Properties and Modular Identities How to show F3n+1 ≡ F 3

n+1 mod Fn (n ≥ 0)?

Compute the ideal a of all relations among F3n+1, Fn+1, Fn. Next, a + x2 = x2, x1x3 − 1, x2

3 − x2 1, x3 1 − x3.

The desired identity follows from the last generator.

slide-159
SLIDE 159

Some Funny Applications

Divisibility Properties and Modular Identities How to show F3n+1 ≡ F 3

n+1 mod Fn (n ≥ 0)?

Compute the ideal a of all relations among F3n+1, Fn+1, Fn. Next, a + x2 = x2, x1x3 − 1, x2

3 − x2 1, x3 1 − x3.

The desired identity follows from the last generator. The second gives another identity for free: F3n+1Fn+1 ≡ 1 mod Fn.

slide-160
SLIDE 160

Some Funny Applications

Divisibility Properties and Modular Identities How to show gcd(Ln, Fn+1) = 1 (Ln being the nth Lucas number)?

slide-161
SLIDE 161

Some Funny Applications

Divisibility Properties and Modular Identities How to show gcd(Ln, Fn+1) = 1 (Ln being the nth Lucas number)? Compute the relations among Ln and Fn+1: a = x4

1 − 10x3 1x2 + 35x2 1x2 − 50x1x3 2 + 25x4 2 − 1.

slide-162
SLIDE 162

Some Funny Applications

Divisibility Properties and Modular Identities How to show gcd(Ln, Fn+1) = 1 (Ln being the nth Lucas number)? Compute the relations among Ln and Fn+1: a = x4

1 − 10x3 1x2 + 35x2 1x2 − 50x1x3 2 + 25x4 2 − 1.

Next, use Gr¨

  • bner bases to determine u, v, w with

1 = ux1 + vx2 + w(x4

1 − 10x3 1x2 + 35x2 1x2 − 50x1x3 2 + 25x4 2 − 1).

slide-163
SLIDE 163

Some Funny Applications

Divisibility Properties and Modular Identities How to show gcd(Ln, Fn+1) = 1 (Ln being the nth Lucas number)? Compute the relations among Ln and Fn+1: a = x4

1 − 10x3 1x2 + 35x2 1x2 − 50x1x3 2 + 25x4 2 − 1.

Next, use Gr¨

  • bner bases to determine u, v, w with

1 = ux1 + vx2 + w(x4

1 − 10x3 1x2 + 35x2 1x2 − 50x1x3 2 + 25x4 2 − 1).

The choice u = x3

1, v = −10x1 +35x2 1x2 −50x1x2 2 +25x3 2, w = −1

will do.

slide-164
SLIDE 164

Some Funny Applications

Divisibility Properties and Modular Identities How to show gcd(Ln, Fn+1) = 1 (Ln being the nth Lucas number)? Compute the relations among Ln and Fn+1: a = x4

1 − 10x3 1x2 + 35x2 1x2 − 50x1x3 2 + 25x4 2 − 1.

Next, use Gr¨

  • bner bases to determine u, v, w with

1 = ux1 + vx2 + w(x4

1 − 10x3 1x2 + 35x2 1x2 − 50x1x3 2 + 25x4 2 − 1).

The choice u = x3

1, v = −10x1 +35x2 1x2 −50x1x2 2 +25x3 2, w = −1

will do. It follows that 1 = p(n)Ln + q(n)Fn+1 for some p(n), q(n) ∈

.
slide-165
SLIDE 165

Some Funny Applications

Divisibility Properties and Modular Identities How to show gcd(Ln, Fn+1) = 1 (Ln being the nth Lucas number)? Compute the relations among Ln and Fn+1: a = x4

1 − 10x3 1x2 + 35x2 1x2 − 50x1x3 2 + 25x4 2 − 1.

Next, use Gr¨

  • bner bases to determine u, v, w with

1 = ux1 + vx2 + w(x4

1 − 10x3 1x2 + 35x2 1x2 − 50x1x3 2 + 25x4 2 − 1).

The choice u = x3

1, v = −10x1 +35x2 1x2 −50x1x2 2 +25x3 2, w = −1

will do. It follows that 1 = p(n)Ln + q(n)Fn+1 for some p(n), q(n) ∈

.

Therefore gcd(Ln, Fn+1) | 1. This suffices.

slide-166
SLIDE 166

Summary

slide-167
SLIDE 167

Summary

◮ Knowing algebraic relations is useful.

slide-168
SLIDE 168

Summary

◮ Knowing algebraic relations is useful. ◮ There is an algorithm which computes the algebraic relations

among some given C-finite sequences.

slide-169
SLIDE 169

Summary

◮ Knowing algebraic relations is useful. ◮ There is an algorithm which computes the algebraic relations

among some given C-finite sequences.

◮ All these relations are consequences of multiplicative relations

among the roots of the characteristic polynomial.

slide-170
SLIDE 170

Summary

◮ Knowing algebraic relations is useful. ◮ There is an algorithm which computes the algebraic relations

among some given C-finite sequences.

◮ All these relations are consequences of multiplicative relations

among the roots of the characteristic polynomial.

◮ A lattice basis for these relations can be computed with a

number-theoretic algorithm. The rest can be done with Gr¨

  • bner bases.
slide-171
SLIDE 171

What’s next?

slide-172
SLIDE 172

P-finite sequences?

slide-173
SLIDE 173

Generating Functions

◮ Note:

1 1 − az ⊙ 1 1 − bz = 1 1 − (ab)z .

slide-174
SLIDE 174

Generating Functions

◮ Note:

1 1 − az ⊙ 1 1 − bz = 1 1 − (ab)z .

◮ The algorithm presented earlier uses multiplicative relations

among the singularities of the generating functions in order to make all the singularities cancel.

slide-175
SLIDE 175

Generating Functions

◮ Note:

1 1 − az ⊙ 1 1 − bz = 1 1 − (ab)z .

◮ The algorithm presented earlier uses multiplicative relations

among the singularities of the generating functions in order to make all the singularities cancel.

◮ Does this only work for rational generating functions (i.e.

C-finite sequences)?

slide-176
SLIDE 176

Generating Functions

◮ Note:

1 1 − az ⊙ 1 1 − bz = 1 1 − (ab)z .

◮ The algorithm presented earlier uses multiplicative relations

among the singularities of the generating functions in order to make all the singularities cancel.

◮ Does this only work for rational generating functions (i.e.

C-finite sequences)?

◮ Consider some examples. . .

slide-177
SLIDE 177

Example 1

Let f(n) be defined by 4(2n + 3)(4n2 − 1) f(n) + 4(2n + 3)(n + 1) f(n + 1) − (n + 1)(n + 2)(2n − 3) f(n + 2) = 0, f(0) = f(1) = 1.

slide-178
SLIDE 178

Example 1

Let f(n) be defined by 4(2n + 3)(4n2 − 1) f(n) + 4(2n + 3)(n + 1) f(n + 1) − (n + 1)(n + 2)(2n − 3) f(n + 2) = 0, f(0) = f(1) = 1. There exist nontrivial algebraic relations among f(n) and f(n + 1), e.g., ((4n + 2)f(n) − (n − 4)f(n + 1)) × ((4n2 − 10n − 6)f(n) − n(n + 1)f(n + 1)) = 0.

slide-179
SLIDE 179

Example 1

Let f(n) be defined by 4(2n + 3)(4n2 − 1) f(n) + 4(2n + 3)(n + 1) f(n + 1) − (n + 1)(n + 2)(2n − 3) f(n + 2) = 0, f(0) = f(1) = 1. This is in accordance with the generating function

  • n=0

f(n)zn = 1

12

  • i

(4z − 1)3/2 + 5i √4z − 1 − 4 √4z + 1

  • having the singularities + 1

4 and − 1 4, which have a multiplicative

relation.

slide-180
SLIDE 180

Example 2

Let f(n) be defined by 2n(n + 3)f(n) − (3n + 8)(n + 1)f(n + 1) + (3n + 8)(n + 2)f(n + 2) − (n + 3)(n + 2)f(n + 3) = 0, f(0) = 1, f(1) = 3, f(2) = 9

2.

slide-181
SLIDE 181

Example 2

Let f(n) be defined by 2n(n + 3)f(n) − (3n + 8)(n + 1)f(n + 1) + (3n + 8)(n + 2)f(n + 2) − (n + 3)(n + 2)f(n + 3) = 0, f(0) = 1, f(1) = 3, f(2) = 9

2.

There are nontrivial relations among f(n), f(n + 1), f(n + 2) (too long to fit on this slide).

slide-182
SLIDE 182

Example 2

Let f(n) be defined by 2n(n + 3)f(n) − (3n + 8)(n + 1)f(n + 1) + (3n + 8)(n + 2)f(n + 2) − (n + 3)(n + 2)f(n + 3) = 0, f(0) = 1, f(1) = 3, f(2) = 9

2.

This is in accordance with the generating function

  • n=0

f(n)zn = 1 1 − 2z + 1 9 √ 3

  • π − 6 arctan(1 − 2z

√ 3 )

  • having the singularities 1

2 and (1 + i

√ 3)/2, (1 − i √ 3)/2, the latter two bearing a multiplicative relation.

slide-183
SLIDE 183

Example 3

Let f(n) be defined as f(n) = Hn(x)/n! where Hn(x) is the nth Hermite polynomial.

slide-184
SLIDE 184

Example 3

Let f(n) be defined as f(n) = Hn(x)/n! where Hn(x) is the nth Hermite polynomial. There do not seem to exist algebraic relations among f(n), f(n+1).

slide-185
SLIDE 185

Example 3

Let f(n) be defined as f(n) = Hn(x)/n! where Hn(x) is the nth Hermite polynomial. This is consistent with the generating function

  • n=0

f(n)zn = exp(2xz − z2) having no singularities.

slide-186
SLIDE 186

Can we construct a complete algorithm for finding algebraic relations among P-finite sequences using singularity analysis?