According to one embodiment, an electronic apparatus comprises antenna elements and processor circuitry. The antenna elements are arranged respectively at least at first, second, third, and fourth positions. The first and second positions are arranged in a first direction. Spacing between the first positions and spacing between the second positions are coprime. The third and fourth positions are arranged in a second direction. Spacing between the third positions and spacing between the fourth positions are coprime.