Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Complex nails solution in Clear category for Ulam-Warburton Automaton Hex by StefanPochmann
from collections import Counter
def automaton(step: int) -> int:
Z = {0}
for _ in range(step - 1):
c = Counter(
z + d
for z in Z
for d in (1, -1, 1j, -1j, 1-1j, 1j-1)
)
Z |= {z for z in c if c[z] == 1}
return len(Z)
March 15, 2023
Comments: