Problem

Source: 2015 Baltic Way Shortlist G5 BW https://artofproblemsolving.com/community/c2641329_baltic_way_shortlist__geometry

Tags: geometry, points



For what positive numbers $m$ and $n$ do there exist points $A_1, ..., Am$ and $B_1 ..., B_n$ in the plane such that, for any point $P$, the equation $$|PA_1|^2 +... + |PA_m|^2 =|PB_1|^2+...+|PA_n|^2 $$holds true?