In ancient Mesopotamian cuneiform, there were a few different ways of writing a deity's name. You could spell it out, you could write one of their divine purviews, or you could use a "sacred number". If you wanted to talk about the sun-god Shamash, for example, you could spell out his name šá-maš, you could write the sign UTU "sun", or you could write the number 20.
Which deities had these sacred numbers, and how were they assigned? A couple of them make sense to me—30 for the moon-god, since it takes about a month for the moon to go through its phases—but most of them seem very arbitrary.