From 78ef30b117041c116f75c914942a4f23044e5d9b Mon Sep 17 00:00:00 2001 From: CharlesLakes Date: Sun, 1 Mar 2026 17:59:24 -0300 Subject: [PATCH] nim L to R --- content/maths/reference/equations.typ | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/maths/reference/equations.typ b/content/maths/reference/equations.typ index 8932cb9..9d721dd 100644 --- a/content/maths/reference/equations.typ +++ b/content/maths/reference/equations.typ @@ -9,3 +9,6 @@ $ cases(a x + b y = e, c x + d y = f) arrow.double x = (e d - b f)/(a d - b c), *Recurrences:* If $a_n = c_1 a_(n-1) + dots.c + c_k a_(n-k)$ and $r_1, dots, r_k$ are distinct roots of $x^k - c_1 x^(k-1) - dots.c - c_k$, then: $ a_n = d_1 r_1^n + dots.c + d_k r_k^n $ Non-distinct root $r$ becomes polynomial factor, e.g. $a_n = (d_1 n + d_2) r^n$. + +*Grundy number for nim L to R:* +$ f(x) = floor((x mod (L+R))/L) $