It's not just Hollywood. Math and the divine have always been linked throughout the ages. Numbers have been ascribed different divine meanings. For example, in christianity we have 3, 7, 13, 666 (or 616). Every religion has linked numbers with the divine, some go more into it than others. The Pythagoreans went really far into it.
It's not really surprising. The divine is often seen to be perfect. Nothing gives as much perfection in our real world as mathematics. The rules seem universal and eternal. Establishing a link between the two is to be expected.
Many people and even famous scientists have gone as far to say that entire science is inspired by the divine. It's not a popular view anymore, but throughout history you saw it a lot.