gcd_difference

bruteforce for https://oeis.org/A199768
git clone https://a3nm.net/git/gcd_difference/
Log | Files | Refs

commit 67176cdcfb4a86e8ff6d9e216cdff383485c7a94
parent 9a0c416006badc01f4790aee1e25cb13c894eb0f
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed,  9 May 2018 20:04:09 +0200

uncommitted changes

Diffstat:
calc.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calc.py b/calc.py @@ -11,7 +11,7 @@ def lcm(x, y): v = [] v.append(1) -for i in range(n+1): +for i in range(n-1): mylcm = reduce(lcm, v, 1) v.insert(0, 0) for i in range(len(v)):