The mid points of two small magnetic dipoles of length in end-on positions, are separated by a distance , (). The force between them is proportional to where is :

From the JEE Main 2014 · 9 Apr · Shift 1 paper. Try it, check your answer, then read the worked solution below.
The mid points of two small magnetic dipoles of length in end-on positions, are separated by a distance , (). The force between them is proportional to where is :

Try it yourself first, then check your working against this.
Worked solution
The field of a short dipole on its axis is . The force on the second dipole is , so .
Concepts used: force between two dipoles on a common axis
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Magnetic dipole and bar magnet), each with a worked solution.
Timed, in the real format, and marked the moment you submit.