From 80a0db65be9dd3d36b3d5503fdcbfac16f6783e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <andreas.mueller@ost.ch>
Date: Thu, 4 Feb 2021 13:24:09 +0100
Subject: Frobenius+Binomialkoeffizienten farbig

---
 buch/chapters/30-endlichekoerper/images/binomial2.tex | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

(limited to 'buch/chapters/30-endlichekoerper/images/binomial2.tex')

diff --git a/buch/chapters/30-endlichekoerper/images/binomial2.tex b/buch/chapters/30-endlichekoerper/images/binomial2.tex
index 487ac18..77ccb57 100644
--- a/buch/chapters/30-endlichekoerper/images/binomial2.tex
+++ b/buch/chapters/30-endlichekoerper/images/binomial2.tex
@@ -20,11 +20,28 @@
 \pgfmathparse{\s/2}
 \xdef\xs{\pgfmathresult}
 
+%
+% #1 = n
+% #2 = k
+%
 \def\dreieck#1#2{
 	\fill[color=black] ({\xs*(-#1+2*#2)},{-\ys*#1})
 		-- ({\xs*(-#1+2*#2-1)},{-\ys*(#1+1)})
 		-- ({\xs*(-#1+2*#2+1)},{-\ys*(#1+1)}) -- cycle;
 }
+\def\zeile#1{
+	\fill[color=red!40]
+	({\xs*(-#1)},{-\ys*#1})
+		-- ({\xs*(-#1-1)},{-\ys*(#1+1)})
+		-- ({\xs*(#1+1)},{-\ys*(#1+1)})
+		-- ({\xs*(#1)},{-\ys*#1}) -- cycle;
+}
+
+\zeile{2}
+\zeile{4}
+\zeile{8}
+\zeile{16}
+\zeile{32}
 
 \dreieck{0}{0}
 
-- 
cgit v1.2.1

