Magnetism is attractive, in other words, north attracts south, south attracts north. Two magnets polarized in the same direction will attract north to south, as will 500 or 5 billion. That concept is known as the Dipole, a simple 1-2 switch, when used in computers it is known the binary code. But there is a lot more to the simple 1-2 switch of a Dipole. The magnetic matrix consists of four numbers, a directional network of positive and negative forces along with neutral zones and crossover points.
Magnets come in all shapes and sizes.
They can be flat, round, square or any other shape, but the theory is the same. When thinking of magnetism one should think of magnetism as a sphere somewhat like the earth itself. Bar magnets can be magnetized in many ways. For example, as a single field on a bar, or several fields on the same bar. A bar magnet with a single field can be magnetized one of two ways, as in this illustration.