06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

“mcs” — 2017/3/3 — 11:21 — page 345 — #353<br />

9.13. References 345<br />

(e) Conclude that if f is an reverse-linear function and f .k/ D 0 <strong>for</strong> some k 2<br />

Œ0; d/, then every positive integer is a divisor of f .n/ <strong>for</strong> infinitely many n.<br />

(f) Conclude that every positive integer is a divisor of infinitely many Fibonacci<br />

numbers.<br />

Hint: Start the Fibonacci sequence with the values 0,1 instead of 1, 1.<br />

Class Problems<br />

Problem 9.34.<br />

Find<br />

<br />

remainder 9876 3456789 9 99 5555<br />

<br />

6789 3414259 ; 14 : (9.27)<br />

Problem 9.35.<br />

The following properties of equivalence mod n follow directly from its definition<br />

and simple properties of divisibility. See if you can prove them without looking up<br />

the proofs in the text.<br />

(a) If a b .mod n/, then ac bc .mod n/.<br />

(b) If a b .mod n/ and b c .mod n/, then a c .mod n/.<br />

(c) If a b .mod n/ and c d .mod n/, then ac bd .mod n/.<br />

(d) rem.a; n/ a .mod n/.<br />

Problem 9.36. (a) Why is a number written in decimal evenly divisible by 9 if and<br />

only if the sum of its digits is a multiple of 9? Hint: 10 1 .mod 9/.<br />

(b) Take a big number, such as 37273761261. Sum the digits, where every other<br />

one is negated:<br />

3 C . 7/ C 2 C . 7/ C 3 C . 7/ C 6 C . 1/ C 2 C . 6/ C 1 D 11<br />

Explain why the original number is a multiple of 11 if and only if this sum is a<br />

multiple of 11.<br />

Problem 9.37.<br />

At one time, the Guinness Book of World Records reported that the “greatest human

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

Saved successfully!

Ooh no, something went wrong!