666 seems to be closely related to the worship of the pagan Sun-God, practiced in ancient Babylon. Michael Scheifler underlines extracts of Roy Allan Anderson in his book “Unfolding the Revelation” (Revised) by Roy Allan Anderson, pages 125-127, Published and copyrighted in 1953, it states as follows:
“The ancients claimed that God works by mathematics. Their religion was a mixture of religion, astrology, alchemy, physical mental science, and mathematics. Ancient astrology divided the starry heavens into 36 constellations. These were represented by different amulets called “Sigilla Solis,“ or the sun seal. These amulets were worn by pagan priests, and they had all the numbers from 1 to 36 engraved on them. By these figures, they claimed to be able to foretell future events. They were also usually made of gold, yellow being the sun color. They were always wrapped in yellow silk when carried, as it was thought that the bearer would then receive the beneficial powers believed to emanate from the jewel.
The Babylonian sun seal
“This second illustration is also a solar seal, but it honors the star Basilisco, which was the small form of the Greek basileus (king), thus meaning the same as the Latin regulus. Regulus is the only first-magnitude star in the constellation of Leo. The sun and the moon are again clearly depicted on the amulet, and on the reverse side is the same arrangement of numerals, with the actual figure given of the total 666.”
The Greek sun seal
The English base 6 system (A=6 B=2X6 C=3X6) of “Sun Moon” = 666. The Sun and Moon are two frequently used and worshiped symbols found in the ancient mystery religions.
"These drawings from photographs taken in 1910, show actual amulets then in the Berlin Museum. They reveal the veneration the ancients had for the sun-god. On the front side of Nr.1, we see the god of the sun standing on the lion. This indicated the sun's position in the constellation of Leo during the warm days of August. On the back is inscribed “Nachyel,“ meaning “intelligence of the sun,“ and in 36 squares are arranged the numerals 1 to 36 (see table 1) in such a way that adding the numbers of any column either horizontally or vertically, and also the two diagonals crossing the square, the total is the same which is 111. The sum of the six columns, added either horizontally or vertically, is 6 X 111, = 666.”
These amulets had all numbers from 1 to 36 in them and they were used by the priests and its function is a magic square that sums to 666 either vertically or horizontally. An example of this is seen below as you can arrange the 36 first numbers into such a square in different arrangements giving us the 666 sum.