\documentclass[a4paper,german,12pt]{article} \usepackage[utf8]{inputenc} % Kompatibilität \usepackage[ngerman]{babel} % Deutsche Silbentrennung \usepackage{mathtools} % Viele Mathe-Tools \usepackage{hyperref} % Links, die man klicken kann \usepackage{xcolor} % mehr Farben \usepackage[margin=1.5cm]{geometry} % Seitengeometrie einstellen \usepackage{graphicx} % Bilder einbinden. \begin{document} \begin{center} {\Large\textsc{Die Summe der natürlichen Zahlen}} \end{center} \tableofcontents \section{Einleitung} \label{einleitung} In dieser kurzen Abhandlung wollen wir erklären, wie man auf die (scheinbar) \textbf{falsche} Aussage kommt, dass die Summe aller natürlichen Zahlen \textit{negativ} ist und einen Wert von minus einem Zwölftel annimmt. \footnotesize Warum diese Aussage zum einen nicht ganz \textcolor{red}{falsch} und zum anderen auch \textcolor{blue}{wichtig} ist, wird euch vielleicht im Verlauf eures Studiums klar werden. Ansonsten kann man sich auch einfach darüber freuen, dass man etwas gelernt hat, was manchen Mathematikern die Haare zu Berge stehen lässt -- nicht aber Bernhard \textsc{Riemann} (s. Abbildung \ref{riemann}). Zunächst mal ein paar Eckdaten: \begin{itemize} \item Von 1840 bis 1842 besuchte er ein Gymnasium in Hannover. \item Er ging bis 1846 auf das Gymnasium Johanneum in Lüneburg. \item 1846 begann er sein Studium in Göttingen. \end{itemize} \normalsize \begin{figure}[h] \centering \includegraphics[width=0.3\textwidth]{riemann.jpg} \caption{\label{riemann}Bernhard Riemann mit einem schönen Bart.} \end{figure} \section{Erklärung} Wir können die Aussage aus Abschnitt \ref{einleitung} auch in eine Formel schreiben, das Resultat sehen wir in Gleichung \ref{summe} \begin{equation} \label{summe} \sum_{n=0}^\infty\, n = -\frac{1}{12} % Stimmt das denn so wirklich? \end{equation} \subsection{Ist das wirklich korrekt?} \label{stimmt} Diese Frage ist \textit{durchaus} berechtigt. Man kann aber auf formale Art und Weise zeigen\footnote{s. z.\,B. \url{https://de.wikipedia.org/wiki/Riemannsche\_\%CE\%B6-Funktion\#Definition}}, dass die richtige Interpretation\footnote{Also wenn man die Summe als analytische Fortsetzung der \textsc{Riemann}schen $\zeta$-Funktion sieht} zum Ergebnis führt. \subsection{Na klar.} \newcommand{\riemann}{\zeta(-1) = -\frac{1}{12}} In Unterabschnitt \ref{stimmt} haben wir bemerkt, dass wir die Summe auffassen können als einen Grenzwert der Zetafunktion, $\riemann$. \begin{table}[h] \caption{\label{tabelle-partialsumme}Wert der $n$-ten Partialsumme} \begin{center} \begin{tabular}{r|l} $n$ & Wert \\ \hline 0 & 0 \\ 1 & 1 \\ 2 & 3 \\ 3 & 6 \\ $\infty$ & $-1/12$ \end{tabular} \end{center} \end{table} \section*{Epilog -- Ein paar Programmiertipps von Rob Pike} Most programs are too \textbf{complicated} - that is, more complex than they \textit{need} to be to solve their problems \textit{efficiently}. Why? Mostly it's because of \textbf{bad design}, but I will skip that issue here because it's a \textbf{\textcolor{red}{big}} one. But programs are often complicated at the microscopic level, and that is something I can address here. \begin{enumerate} \item \textcolor{red}{You can't tell where a program is going to spend its time.} Bottlenecks occur in surprising places, so don't try to second guess and put in a speed hack until you've proven that's where the bottleneck is. \item \label{measure}\textcolor{red}{Measure.} Don't tune for speed until you've measured, and even then don't unless one part of the code overwhelms the rest. \item \textcolor{red}{Fancy algorithms are slow when $n$ is small}, and $n$ is usually small. Fancy algorithms have big constants. Until you know that $n$ is frequently going to be big, don't get fancy. (Even if $n$ does get big, use \ref{measure}. first.) For example, binary trees are always faster than splay trees for workaday problems. \item \textcolor{red}{Fancy algorithms are buggier} than simple ones, and they're much harder to implement. Use simple algorithms as well as simple data structures. \end{enumerate} \begin{center} \includegraphics[width=0.5\textwidth]{ctanlion.eps} \end{center} \end{document}