• Keine Ergebnisse gefunden

F0 = 0, F1 = 1 and Fi =Fi−1+Fi−2 for i≥2)

N/A
N/A
Protected

Academic year: 2021

Aktie "F0 = 0, F1 = 1 and Fi =Fi−1+Fi−2 for i≥2)"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

SS 2010 2010/04/23 Exercises to the Lecture Computer Algebra

Sheet 2

Prof. Dr. Klaus Madlener Delivery until 2010/04/30

Exercise 1: [GCD]

a) Relating to Theorem 2.13: Let Fi for i N be the i-th Fibonacci-Number (i.e.

F0 = 0, F1 = 1 and Fi =Fi−1+Fi−2 for i≥2). Prove that bFi+2/Fi+1c= 1 and Fi−1=Fi+1 modFi for all i≥2.

b) LetF[x] be the (Euclidean) univariate polynomial ring over a fieldF and further- more a, b F[x]\ {0} and g = gcda, b F[x]. Show that for every polynomial c∈F[x] withg|cthere are unique polynomialsσ, τ ∈F[x], such that σa+τ b=c and deg(σ)<deg(b)−deg(g) hold. If furthermore deg(c)<deg(a)+deg(b)−deg(g) holds, then deg(τ)<deg(a)deg(g).

c) Leta, b∈N+ and a > b. We want to decide wether there are i, j∈N+, such that ai =bj. Consider the following decision procedure:

First check, if b|a. If not, then answer “no” . If yes, replace (a, b) with (a/b, b), if a b2, or with (b, a/b), if a < b2. If – by iterating – finally a tuple (a0,1) is reached, answer “yes”.

Show that this procedure terminates and correctly solves our Problem for every input and that it requires – in the worst case –O(λ(a)2) bit operations.

Exercise 2: [Division in Z]

a) We reconsider the division algorithm for non-negative base-b-integers for b 2.

Let u = (u0· · ·un)b and v = (v1· · ·vn)b with bu/vc < b. As in the lecture let qˆ= min

u0b+u1

v1

, b−1

be the approximation of q =bu/vc with u=qv+r and 0≤r < v.

Prove that ˆq ≥q and forv1 ≥ bb/2c also ˆq−2≤q.

b) Find an example for u and v with base 10 that illustrates the necessity of the conditional statement

if (uj· · ·uj+n)b <qˆ·(v1· · ·vn)b thenqˆ:= ˆq−1

Referenzen

ÄHNLICHE DOKUMENTE

free-key  IT-Innerebner GmbH  Bundesstraße 27  A-6063 Innsbruck / Neu-Rum T: +43 (0)512 / 39 06 05  F: +43 (0)512 39 06 58  info@free-key.eu 

Paina tämän jälkeen vahvistusnäppäintä – Syötä käyttäjäkoodi (tehdasasetus: 168) – Paina uudelleen vahvistusnäppäintä.. – Nyt voit avata kassakaapin ja

Nun schiebt man mit einer engen Glasröhre eine Flocke (f) von Glaswolle bis in die Nähe des Glaswollbäuschchens, so zwar, daß zwischen beiden ein Raum von etwa 1cm vollkommen leer

Verbindet man daher A mit C, so erhält man einen Proportionsw inkel, auf dessen horizontalem Schenkel man nur den Horizontaldruck, welcher bei B herrscht, anfzutragen braucht, um in

[r]

Hat man es mit nassem Dampf zu tun, so daß q1 wesentlich kleiner ist als die Einheit, dann ergibt die Rechnung für irgend ein Beispiel, daß q größer ausfallen kann als (11; das

«Bcr dieRechabiter dafelbstgelobt vnd gerühmet/nichr von wegen jrec enthalmng von grosser Mcssig- keit/als ob sie damit Vergebung der Sünden erworben hetten/sondern vielmehr

lm Kanton Basel-Landschaft wird die Aufsicht über die Staatsanwaltschaft, welche organisa- torisch der Sicherheitsdirektion zugeordnet ist, grundsätzlich durch den