Notebook[List[Cell[BoxData[FormBox[RowBox[List[SubscriptBox["d", "AB"], "=", SqrtBox[RowBox[List[UnderscriptBox["\[Sum]", RowBox[List["j", "\[Element]", "J"]]], " ", SuperscriptBox[RowBox[List["(", RowBox[List[SubscriptBox["x", "Aj"], "-", SubscriptBox["x", "Bj"]]], ")"]], "2"]]]]]], TraditionalForm]], "Input"]]]