Thus, the smallest such grid size is $\boxed1025640$. - Anadea
May 15, 2026
Content is being prepared. Please check back later.