Split the square at different points and see if sum of any pair of splitted numbers is equal to n .
for ( let r_digits = 1 ; r_digits < count_digits ; r_digits ++ ) { let eq_parts = Math . pow ( 10 , r_digits ) ;