Our first formula is for a sum of n copies of a constant c.
This is fairly obvious, but for completeness we present Figure C-1.
Figure C-1. If each small rectangle has width c and height 1, the total area of the large rectangle is cn.
(This item is displayed on page 553 in the print version)
C 3 Sum of First n Integers |
Part I: Object-Oriented Programming
Encapsulation
Polymorphism
Inheritance
Part II: Linear Structures
Stacks and Queues
Array-Based Structures
Linked Structures
Part III: Algorithms
Analysis of Algorithms
Searching and Sorting
Recursion
Part IV: Trees and Sets
Trees
Sets
Part V: Advanced Topics
Advanced Linear Structures
Strings
Advanced Trees
Graphs
Memory Management
Out to the Disk
Part VI: Appendices
A. Review of Java
B. Unified Modeling Language
C. Summation Formulae
D. Further Reading
Index