06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

“mcs” — 2017/3/3 — 11:21 — page 344 — #352<br />

344<br />

Chapter 9<br />

Number Theory<br />

implies r 1 D r 2 .<br />

(c) Show that multiplicative inverses are unique, that is, show that<br />

r ˝ r 1 D 1<br />

r ˝ r 2 D 1<br />

implies r 1 D r 2 .<br />

Problem 9.33.<br />

This problem will use elementary properties of congruences to prove that every<br />

positive integer divides infinitely many Fibonacci numbers.<br />

A function f W N ! N that satisifies<br />

f .n/ D c 1 f .n 1/ C c 2 f .n 2/ C C c d f .n d/ (9.26)<br />

<strong>for</strong> some c i 2 N and all n d is called a degree d linear-recursive.<br />

A function f W N ! N has a degree d repeat modulo m at n and k when it<br />

satisfies the following repeat congruences:<br />

f .n/ f .k/ .mod m/;<br />

f .n 1/ f .k 1/ .mod m/;<br />

:<br />

f .n .d 1// f .k .d 1// .mod m/:<br />

<strong>for</strong> k > n d 1.<br />

For the rest of this problem, assume linear-recursive functions and repeats are<br />

degree d > 0.<br />

(a) Prove that if a linear-recursive function has a repeat modulo m at n and k, then<br />

it has one at n C 1 and k C 1.<br />

(b) Prove that <strong>for</strong> all m > 1, every linear-recursive function repeats modulo m at<br />

n and k <strong>for</strong> some n; k 2 Œd 1; d C m d /.<br />

(c) A linear-recursive function is reverse-linear if its dth coefficient c d D ˙1.<br />

Prove that if a reverse-linear function repeats modulo m at n and k <strong>for</strong> some n d,<br />

then it repeats modulo m at n 1 and k 1.<br />

(d) Conclude that every reverse-linear function must repeat modulo m at d 1<br />

and .d 1/ C j <strong>for</strong> some j > 0.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!