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