Double-Entry Accounting: The Mathematical Formulation and Generalization [pdf] | Hacker News Reader