- Page 1 and 2: CONCRETE MATHEMATICS Dedicated to L
- Page 3 and 4: CONCRETE MATHEMATICS Ronald L. Grah
- Page 5 and 6: “A odience, level, and treatment
- Page 7 and 8: ‘I a concrete life preserver thro
- Page 9 and 10: I’m unaccustomed to this face. De
- Page 11 and 12: n [ n-l 1 n {I m Prestressed concre
- Page 13: CONTENTS xiii 5.3 Tricks of the Tra
- Page 17 and 18: Yeah, yeah. lseen that word before.
- Page 19 and 20: (A pizza with Swiss cheese?) A regi
- Page 21 and 22: Actually Gauss is often called the
- Page 23 and 24: Here’s a case where n = 0 makes n
- Page 25 and 26: But there’s a simpler way! The ke
- Page 27 and 28: Looks like Greek to me. J(n) = n/2,
- Page 29 and 30: Beware: The authors are expecting u
- Page 31 and 32: Exercises Warmups 1 EXERCISES 17 Pl
- Page 33 and 34: Good luck keeping the cheese in pos
- Page 35 and 36: 2 Sums SUMS ARE EVERYWHERE in mathe
- Page 37 and 38: The summation symbol looks like a d
- Page 39 and 40: convention to write the sum of reci
- Page 41 and 42: [The value of s1 cancels out, so it
- Page 43 and 44: We started with a t in the recurren
- Page 45 and 46: “What’s one and one and one and
- Page 47 and 48: 2.3 MANIPULATION OF SUMS 33 (When x
- Page 49 and 50: 2.4 MULTIPLE SUMS 35 The middle ter
- Page 51 and 52: Does rocky road have fudge in it? 2
- Page 53 and 54: 2.4 MULTIPLE SUMS 39 Multiple summa
- Page 55 and 56: l
- Page 57 and 58: Or, at least to problems having the
- Page 59 and 60: The horizontal scale here is ten ti
- Page 61 and 62: As opposed to a cassette function.
- Page 63 and 64: 2.6 FINITE AND INFINITE CALCULUS 49
- Page 65 and 66:
With friends like this.. 2.6 FINITE
- Page 67 and 68:
0.577 exactly? Maybe they mean l/d.
- Page 69 and 70:
Infinite calculus avoids E here by
- Page 71 and 72:
Sure: 1 + 2 + 4 + 8 + . . is the
- Page 73 and 74:
2.7 INFINITE SUMS 59 We might also
- Page 75 and 76:
2.7 INFINITE SUMS 61 in this specia
- Page 77 and 78:
5 What’s wrong with the following
- Page 79 and 80:
The laws of the jungle. 27 Compute
- Page 81 and 82:
)Ouch.( 3 Integer Functions WHOLE N
- Page 83 and 84:
Next week we’re getting walls. 3.
- Page 85 and 86:
Skepticism is healthy only to a lim
- Page 87 and 88:
Home of the Toledo Mudhens. (Or, by
- Page 89 and 90:
nue. Where did you say this casino
- Page 91 and 92:
. . . without MS of generality. .
- Page 93 and 94:
3.3 FLOOR/CEILING RECURRENCES 79 Ex
- Page 95 and 96:
“Known” like, say, harmonic num
- Page 97 and 98:
There was a time in the 70s when
- Page 99 and 100:
3.4 ‘MOD’: THE BINARY OPERATION
- Page 101 and 102:
Warning: This stuff is fairly advan
- Page 103 and 104:
(The formula [O or 1 I stands for s
- Page 105 and 106:
“inventive genius requires pleasu
- Page 107 and 108:
Lemmanow, dilemma later. 3.5 FLOOR/
- Page 109 and 110:
You know you’re in college when t
- Page 111 and 112:
3 EXERCISES 97 20 Find the sum of a
- Page 113 and 114:
3 EXERCISES 99 39 Prove that the do
- Page 115 and 116:
Research problems 3 EXERCISES 101 4
- Page 117 and 118:
In Britain we call this ‘hcf’ (
- Page 119 and 120:
4.1 DIVISIBILITY 105 (4.8) works al
- Page 121 and 122:
4.2 PRIMES 107 It’s the factor- S
- Page 123 and 124:
Or probably more, by the time you r
- Page 125 and 126:
4.3 PRIME EXAMPLES 111 These formul
- Page 127 and 128:
4.4 FACTORIAL FACTORS 113 contribut
- Page 129 and 130:
4.4 FACTORIAL FACTORS 115 We can us
- Page 131 and 132:
4.5 RELATIVE PRIMALITY 117 and then
- Page 133 and 134:
Fdrey ‘nough. 4.5 RELATIVE PRIMAL
- Page 135 and 136:
4.5 RELATIVE PRIMALITY 121 we get t
- Page 137 and 138:
“Numerorum congruentiam hoc signo
- Page 139 and 140:
4.6 ‘MOD’: THE CONGRUENCE RELAT
- Page 141 and 142:
For example, the Mersenne prime 23'
- Page 143 and 144:
All primes are odd except 2, which
- Page 145 and 146:
(NEWS FLASH] Euler 1931 conjectured
- Page 147 and 148:
“5 fuerit N ad x numerus primus e
- Page 149 and 150:
and we can group these fractions by
- Page 151 and 152:
4.9 PHI AND MU 137 m is large? How
- Page 153 and 154:
4.9 PHI AND MU 139 = x f(x/m) x p(d
- Page 155 and 156:
We have just proved that mN(m,n) =
- Page 157 and 158:
4.9 PHI AND MU 143 Now we raise bot
- Page 159 and 160:
11 Find a function o(n) with the pr
- Page 161 and 162:
4 EXERCISES 147 Why is “Euler”
- Page 163 and 164:
What are the roots of disunity? 4 E
- Page 165 and 166:
4 EXERCISES 151 64 The Peirce seque
- Page 167 and 168:
Lucky us! Otherwise known as combin
- Page 169 and 170:
Binomial coefficients were well kno
- Page 171 and 172:
5.1 BASIC IDENTITIES 157 I just hop
- Page 173 and 174:
5.1 BASIC IDENTITIES 159 Those of u
- Page 175 and 176:
5.1 BASIC IDENTITIES 161 Let’s lo
- Page 177 and 178:
5.1 BASIC IDENTITIES 163 Two specia
- Page 179 and 180:
5.1 BASIC IDENTITIES 165 so we’re
- Page 181 and 182:
5.1 BASIC IDENTITIES 167 and this r
- Page 183 and 184:
Table 169 Sums of oroducts of binom
- Page 185 and 186:
5.1 BASIC IDENTITIES 171 So much fo
- Page 187 and 188:
Algorithm self-teach: 1 read proble
- Page 189 and 190:
Please, don’t remind me of the mi
- Page 191 and 192:
Do old exams ever die? 5.2 BASIC PR
- Page 193 and 194:
Anyway those of us who’ve done wa
- Page 195 and 196:
So we should deep six this sum, rig
- Page 197 and 198:
77~ binary search: Replay the middl
- Page 199 and 200:
They expect us to check this on a s
- Page 201 and 202:
5.3 TRICKS OF THE TRADE 187 Identit
- Page 203 and 204:
For example, 1 4 6 4 1 --x+1f--- +
- Page 205 and 206:
5.3 TRICKS OF THE TRADE 191 is a po
- Page 207 and 208:
Znvert this: ‘zmb ppo’. 5.3 TRI
- Page 209 and 210:
Baseball fans: .367 is also Ty Cobb
- Page 211 and 212:
5.4 GENERATING FUNCTIONS 197 We wil
- Page 213 and 214:
5.4 GENERATING FUNCTIONS 199 intere
- Page 215 and 216:
5.4 GENERATING FUNCTIONS 201 this e
- Page 217 and 218:
series explicitly for future refere
- Page 219 and 220:
5.5 HYPERGEOMETRIC FUNCTIONS 205 An
- Page 221 and 222:
“There must be many universities
- Page 223 and 224:
5.5 HYPERGEOMETRIC FUNCTIONS 209 lo
- Page 225 and 226:
How do you write 2 to the W power,
- Page 227 and 228:
Kummer was a summer. 5.5 HYPERGEOME
- Page 229 and 230:
(Historical note: The great relevan
- Page 231 and 232:
The hypergeometric database should
- Page 233 and 234:
How do you proflounce 4 ? (Dunno, b
- Page 235 and 236:
The function F(z) = (1 -2)’ satis
- Page 237 and 238:
5.6 HYPERGEOMETRIC TRANSFORMATIONS
- Page 239 and 240:
(Divisibility ofpolynomials is anal
- Page 241 and 242:
Why isn’t it r(k) = k + 1 ? Oh, I
- Page 243 and 244:
5.7 PARTIAL HYPERGEOMETRIC SUMS 229
- Page 245 and 246:
(Here t and T aren’t necessarily
- Page 247 and 248:
27 Prove that F al, al+;, . . . . a
- Page 249 and 250:
5 EXERCISES 235 47 The sum tk (rkk+
- Page 251 and 252:
65 Prove that Ck(k+l)! = n. 66 Eval
- Page 253 and 254:
77 What is the value of .II!rn\ . O
- Page 255 and 256:
89 Prove that (5.19) has an infinit
- Page 257 and 258:
6 Special Numbers SOME SEQUENCES of
- Page 259 and 260:
Table 245 Stirling’s triangle for
- Page 261 and 262:
6.1 STIRLING NUMBERS 247 We can der
- Page 263 and 264:
6.1 STIRLING NUMBERS 249 We can go
- Page 265 and 266:
6.1 STIRLING NUMBERS 251 Table 251
- Page 267 and 268:
Table 253 Stirling’s triangles in
- Page 269 and 270:
6.2 EULERIAN NUMBERS 255 Eulerian n
- Page 271 and 272:
So l/x isa polynomial? (Sorry about
- Page 273 and 274:
This must be Table 259. 6.3 HARMONI
- Page 275 and 276:
Metric units make this problem more
- Page 277 and 278:
‘7 now see a way too how ye aggre
- Page 279 and 280:
6.4 HARMONIC SUMMATION 6.4 HARMONIC
- Page 281 and 282:
6.4 HARMONIC SUMMATION 2ci7 nth dif
- Page 283 and 284:
6.5 BERNOULLI NUMBERS 6.5 BERNOULLI
- Page 285 and 286:
Here’s some more neat stuff that
- Page 287 and 288:
6.5 BERNOULLI NUMBERS 273 And that
- Page 289 and 290:
6.5 BERNOULLI NUMBERS 275 Here 01
- Page 291 and 292:
The back-to-nature nature of this e
- Page 293 and 294:
form 6.6 FIBONACCI NUMBERS 279 F:,,
- Page 295 and 296:
6.6 FIBONACCI NUMBERS 281 form kn i
- Page 297 and 298:
5% 1 + x + 2xx + 3x3 +5x4 +8x5 + 13
- Page 299 and 300:
As usual, the authors can't resist
- Page 301 and 302:
If the USA ever goes metric, our sp
- Page 303 and 304:
6.7 CONTINUANTS 289 We also know th
- Page 305 and 306:
6.7 CONTINUANTS 291 Moreover, conti
- Page 307 and 308:
Well, y must be irrational, because
- Page 309 and 310:
6.7 CONTINUANTS 295 The correspondi
- Page 311 and 312:
16 What is the general solution of
- Page 313 and 314:
Ah! Those were prime years. 6 EXERC
- Page 315 and 316:
6 EXERCISES 301 53 Find a closed fo
- Page 317 and 318:
6 EXERCISES 303 70 Prove that the t
- Page 319 and 320:
6 EXERCISES 305 89 Develop a genera
- Page 321 and 322:
7.1 DOMINO THEORY AND CHANGE 307 th
- Page 323 and 324:
7.1 DOMINO THEORY AND CHANGE 309 (M
- Page 325 and 326:
7.1 DOMINO THEORY AND CHANGE 311 Le
- Page 327 and 328:
7.1 DOMINO THEORY AND CHANGE 313 fo
- Page 329 and 330:
7.1 DOMINO THEORY AND CHANGE 315 Ho
- Page 331 and 332:
If physicists can get away with vie
- Page 333 and 334:
7.2 BASIC MANEUVERS 319 Replacing t
- Page 335 and 336:
Hint: 1f the sequence consists of b
- Page 337 and 338:
7.3 SOLVING RECURRENCES 7.3 SOLVING
- Page 339 and 340:
also has nice coefficients, 7.3 SOL
- Page 341 and 342:
7.3 SOLVING RECURRENCES 327 When Q(
- Page 343 and 344:
7.3 SOLVING RECURRENCES 329 And wit
- Page 345 and 346:
The generating function derived ear
- Page 347 and 348:
is somehow involved. So we steer to
- Page 349 and 350:
7.3 SOLVING RECURRENCES 335 Let’s
- Page 351 and 352:
Table 337 Generating functions for
- Page 353 and 354:
I always thought convolution was wh
- Page 355 and 356:
Beta use it’s so harmonic. 7.5 CO
- Page 357 and 358:
The authors jest. 7.5 CONVOLUTIONS
- Page 359 and 360:
7.5 CONVOLUTIONS 345 sums s, = XL=,
- Page 361 and 362:
(Attention, computer scientists: Th
- Page 363 and 364:
hence our tough question has a surp
- Page 365 and 366:
7.6 EXPONENTIAL GENERATING FUNCTION
- Page 367 and 368:
7.6 EXPONENTIAL GENERATING FUNCTION
- Page 369 and 370:
7.6 EXPONENTIAL GENERATING FUNCTION
- Page 371 and 372:
7.7 DIRICHLET GENERATING FUNCTIONS
- Page 373 and 374:
7 EXERCISES 359 15 The Bell number
- Page 375 and 376:
7 EXERCISES 361 25 Let m 3 2 be an
- Page 377 and 378:
7 EXERCISES 363 37 Let a,, be the n
- Page 379 and 380:
Kissinger, take note. Is this a hin
- Page 381 and 382:
8 Discrete Probability THE ELEMENT
- Page 383 and 384:
8.1 DEFINITIONS 369 (We have been u
- Page 385 and 386:
8.1 DEFINITIONS 371 making independ
- Page 387 and 388:
(Slightly subtle point: There are t
- Page 389 and 390:
since (EX) is a constant; hence 8.2
- Page 391 and 392:
(That is, the average will fall bet
- Page 393 and 394:
8.2 MEAN AND VARIANCE 379 We estima
- Page 395 and 396:
8.3 PROBABILITY GENERATING FUNCTION
- Page 397 and 398:
8.3 PROBABILITY GENERATING FUNCTION
- Page 399 and 400:
8.3 PROBABILITY GENERATING FUNCTION
- Page 401 and 402:
Con artists know that p 23 0.1 when
- Page 403 and 404:
8.4 FLIPPING COINS 389 A simpler wa
- Page 405 and 406:
” ‘You really are an automaton-
- Page 407 and 408:
The relevant derivatives are F’(1
- Page 409 and 410:
8.4 FLIPPING COINS 395 But there’
- Page 411 and 412:
Somehow the verb “to hash” magi
- Page 413 and 414:
8.5 HASHING 399 After a successful
- Page 415 and 416:
8.5 HASHING 401 The probability tha
- Page 417 and 418:
Oh, now 1 unde&and what mathematici
- Page 419 and 420:
8.5 HASHING 405 (8.32), and we have
- Page 421 and 422:
8.5 HASHING 407 The probability tha
- Page 423 and 424:
8.5 HASHING 409 When such “coinci
- Page 425 and 426:
8.5 HASHING 411 possible values of
- Page 427 and 428:
Exercises Warmups 8 EXERCISES 413 1
- Page 429 and 430:
8 EXERCISES 415 19 Continuing the p
- Page 431 and 432:
(Use a calculator for the numerical
- Page 433 and 434:
A peculiar set of tennis players.
- Page 435 and 436:
Frisbee is a trademark of Wham-O Ma
- Page 437 and 438:
8 EXERCISES 423 C What is the avera
- Page 439 and 440:
9 Asymptotics EXACT ANSWERS are gre
- Page 441 and 442:
A loerarchy? 7 that includes entrie
- Page 443 and 444:
8, . . . wir durch das Zeichen 0 (n
- Page 445 and 446:
You are the fairest of your sex, Le
- Page 447 and 448:
“It is obvious that the sign = is
- Page 449 and 450:
Also ID, the Dura- Aame logarithm.
- Page 451 and 452:
Remember that R stands for “‘re
- Page 453 and 454:
9.3 0 MANIPULATION 439 (Here we ass
- Page 455 and 456:
9.3 0 MANIPULATION 441 (We are expa
- Page 457 and 458:
9.3 0 MANIPULATION 443 since the ri
- Page 459 and 460:
9.3 0 MANIPULATION 445 Namely, we k
- Page 461 and 462:
Into a Big Oh. 9.3 0 MANIPULATION 4
- Page 463 and 464:
9.3 0 MANIPULATION 449 This prelimi
- Page 465 and 466:
And we can bootstrap yet again: nc
- Page 467 and 468:
Asymptotics is the art of knowing w
- Page 469 and 470:
9.4 TWO ASYMPTOTIC TRICKS 455 “We
- Page 471 and 472:
Setting E = 1 tells us that Af(x) =
- Page 473 and 474:
In other words, we need to have 9.5
- Page 475 and 476:
9.5 EULER’S SUMMATION FORMULA 461
- Page 477 and 478:
9.6 FINAL SUMMATIONS 463 This is ki
- Page 479 and 480:
9.6 FINAL SUMMATIONS 465 formula do
- Page 481 and 482:
Heisenberg may have been here. 9.6
- Page 483 and 484:
9.6 FINAL SUMMATIONS 469 This is a
- Page 485 and 486:
9.6 FINAL SUMMATIONS 471 when they
- Page 487 and 488:
Actually I’m not into dominance.
- Page 489 and 490:
9.6 FINAL SUMMATIONS 475 is bounded
- Page 491 and 492:
24 25 26 27 28 29 30 31 9 EXERCISES
- Page 493 and 494:
46 Show that the Bell number b, = e
- Page 495 and 496:
58 Prove that B,(Ix}) = -26 x cos(2
- Page 497 and 498:
(The first tinder of every error in
- Page 499 and 500:
I bet Iknowwhat happensin four A AN
- Page 501 and 502:
A ANSWERS TO EXERCISES 487 Bertrand
- Page 503 and 504:
“lt is a profoundly erroneous tru
- Page 505 and 506:
A ANSWERS TO EXERCISES 191 There is
- Page 507 and 508:
A ANSWERS TO EXERCISES 4% 3.11 If n
- Page 509 and 510:
This logic is seriously floored. 3.
- Page 511 and 512:
3.36 The sum is t 2 L4pm[m= Llgl]]
- Page 513 and 514:
Too easy. A more interesting (still
- Page 515 and 516:
A ANSWERS TO EXERCISES 501 4.8 We w
- Page 517 and 518:
A ANSWERS TO EXERCISES 503 4.32 The
- Page 519 and 520:
A ANSWERS TO EXERCISES 505 4.45 x2
- Page 521 and 522:
A ANSWERS TO EXERCISES 507 this is
- Page 523 and 524:
I have discovered a wonderful proof
- Page 525 and 526:
What’s 114 in radix 11 ? for all
- Page 527 and 528:
A ANSWERS TO EXERCISES 513 5.16 Thi
- Page 529 and 530:
The boxed sentence on the other sid
- Page 531 and 532:
y Vandermonde’s convolution (5.92
- Page 533 and 534:
5.60 (‘c) z 4n/&K is the case m =
- Page 535 and 536:
A ANSWERS TO EXERCISES 521 times 2
- Page 537 and 538:
5.84 Following the hint, we get A A
- Page 539 and 540:
A ANSWERS TO EXERCISES 525 need r >
- Page 541 and 542:
A ANSWERS TO EXERCISES 527 If the h
- Page 543 and 544:
A ANSWERS TO EXERCISES 529 For exam
- Page 545 and 546:
A ANSWERS TO EXERCISES 531 6.49 Set
- Page 547 and 548:
A ANSWERS TO EXERCISES 533 6.55 The
- Page 549 and 550:
A ANSWERS TO EXERCISES 535 6.68 1 /
- Page 551 and 552:
A ANSWERS TO EXERCISES 537 and we h
- Page 553 and 554:
A ANSWERS TO EXERCISES 539 this giv
- Page 555 and 556:
A ANSWERS TO EXERCISES 541 7.6 Let
- Page 557 and 558:
This slow method of finding the ans
- Page 559 and 560:
A ANSWERS TO EXERCISES 545 Subtract
- Page 561 and 562:
The empty set is pointless. A ANSWE
- Page 563 and 564:
A ANSWERS TO EXERCISES 549 Incident
- Page 565 and 566:
A ANSWERS TO EXERCISES 551 562 z 12
- Page 567 and 568:
A ANSWERS TO EXERCISES 553 8.19 (a)
- Page 569 and 570:
A ANSWERS TO EXERCISES 555 7; in ca
- Page 571 and 572:
A ANSWERS TO EXERCISES 557 To solve
- Page 573 and 574:
The solution is given by the super
- Page 575 and 576:
A ANSWERS TO EXERCISES 561 X, + Y,,
- Page 577 and 578:
A ANSWERS TO EXERCISES 563 values o
- Page 579 and 580:
A ANSWERS TO EXERCISES 565 way to d
- Page 581 and 582:
A ANSWERS TO EXERCISES 567 9.9 (For
- Page 583 and 584:
A ANSWERS TO EXERCISES 569 which is
- Page 585 and 586:
Hence S, = a7m-l -- inP2 - An3 + O(
- Page 587 and 588:
for all m. Divide by n and let n +
- Page 589 and 590:
A ANSWERS TO EXERCISES 575 9.53 By
- Page 591 and 592:
“The paradox is now fully establi
- Page 593 and 594:
215, 603. 515. 316. 604. 602. 13 42
- Page 595 and 596:
602. 344. 604. 577, 605. 31. 278. 2
- Page 597 and 598:
496. 65 604. 66 602. 67 603. 68 171
- Page 599 and 600:
133, 134. 89 289. 90 285, 605. 6, 6
- Page 601 and 602:
B BIBLIOGRAPHY 587 605. 114 J. Garf
- Page 603 and 604:
566. V. 604. 42. 428, 605. 605. 111
- Page 605 and 606:
vi, 486, 499, 515, 548, 602, 603, 6
- Page 607 and 608:
168. 281. 605. 602. 604. 603. 536.
- Page 609 and 610:
603. 510. 394. 604. 207. 603. 48. 6
- Page 611 and 612:
526. 207. 279. 604. 604. 602. 604.
- Page 613 and 614:
510. 131. 604. 603. 383, 384. 605.
- Page 615 and 616:
The TA sessions were invaluable, I
- Page 617 and 618:
4.57 4.58 4.59 4.60 4.61 4.63 4.64
- Page 619 and 620:
8.13 8.15 8.17 8.24 8.26 8.27 8.29
- Page 621 and 622:
Average, defined, 370. of a recipro
- Page 623 and 624:
Coins, 313-316. biased, 387. fair,
- Page 625 and 626:
Eisenstein, Ferdinand Gotthold Max,
- Page 627 and 628:
Generalization, 11, 13, 16. downwar
- Page 629 and 630:
Interpolation, 191-192. Intervals,
- Page 631 and 632:
Multiplicative functions, 134-136,
- Page 633 and 634:
Proof, 4, 7. Property, 23, 34. Pull
- Page 635 and 636:
Steiner, Jacob, 5, 598, 602. Steinh
- Page 637 and 638:
Uspensky, James Victor, 587, 599, 6
- Page 639:
THIS BOOK was composed at Stanford