A048289 Number of Go games with exactly n moves.
1, 361, 129960
Offset: 0
Links
- Daniel Forgues, Game of Go, OEIS wiki, Feb. 2016.
Crossrefs
Cf. A007565.
This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
The case n=3: t 1 2 3 3 4 4 5 6 6 7 7 + x x x x x + x x + x x + + + x x x + + o o o + + + o o + o o o o o o + t=1 and t=7 are the same, so the period is 6. a(12) = 12 * 2^0 * (12 + 6 + 3 + 10 + 5 + 9 + 7 + 8 + 4 + 2 + 1 - 1) = 792.
a(0) = 4 (Bishop) * 4 (Bishop) * 6 (Queen) * 10 (Knights) * 1 (King and Rooks) = 960. a(1) = 36*18 + 204*19 + 204*19 + 516*20 + 90 + 72 = 18882. a(2) = 22*18^2 + (162+160+8+6)*19^2 + (454+28+22+20+16)*20^2 + (34+28)*21^2 = 371766.
import chess def A157851(n, b = None): return (b.legal_moves.count() if b else 960) if not n else sum(b.push(m) or A157851(n-1, b)+(not b.pop()) for m in b.legal_moves) if b else sum(A157851(n-1, chess.Board.from_chess960_pos(s)) for s in range(960)) # (For illustration, slow for n > 3.) - M. F. Hasler, Apr 25 2023
Comments