I'm really confused. In a book ISBN: 978-0-470-27680-8 is written:
The Euclidean distance can be generalized as a special case of a family of metrics, called Minkowski distance or L p norm, defined as, $ D(\mathbf{x}_i,{\mathbf x}_j)=\left(\sum_{l=1}^d |x_{il}-x_{jl}|^{1/p}\right)^p \tag{1} $
Is it correct? In other sources Minkowski distance is defined as:
$ \left( \color{red}{\sum_{i=1}^n} |x_{i}-y_{i}|^p\right)^{1/p} \tag{2} $
Which one is correct? (notice to powers)
J.D.'s edit: The highlighted red part was missing from a previous edit.. Originally, OP included the following two images: