This is not involved with satanism or devilworship in any way - it is strictly Christian from the New Testament.
In the Book of Revelations in the Bible it states that the number of the beast is 666, many uneducated people take this a being like a street number or ticket number etc, but it is not. The number being refered to us a form of numerology where letters are assigned a value and the value of the letters in a name are added up in a particular way. The figure is further confussed by the fact that Revelations was originally written in Greek than translated into Latin then translated into English, so the exact real value that should be there is an item of contention in some biblical scholarly discussions. But assume that the number is the English equivalent of 666.
Then it should be read as 6-6-6 and refer to a person whose name has three distinct groups (eg Fred James Smith) and the value of each name is 6. The process went something along the lines of F = 5, R = 4, E = 8, D = 9 then 5 + 4 + 6 + 9 = 24 which is 2 + 4 = 6 the value of Fred = 6 (NB values used here are arbitrary for example purposes only).
The problem is further enlarged as there are two major numerology systems in use at that time, they are referred to as the Lesser Cannon and the Greater Cannon - each assigned different values to letters and handled the addition process seperately. Start to get the picture that it is not that easy to identify who they were refering to?
So next time someone tells you that the number 666 is satanical you can tell them that they do not know a damn thing about what they are talking about.