Toolkit 83Diagonal of a GridIf you draw the diagonal of an m×nm\times nm×n grid, then the diagonal is split into m+n−gcd(m,n)m+n-\gcd(m,n)m+n−gcd(m,n) parts.Related ProblemsCoreAMC 8 2025 (Problem 25)AMC 8 2024 (Problem 23)PROMYS 2022 (Problem 5)