Music is applied mathematics. Is it a "factor" in composition? What does that really mean? Are notes, intervals, & rhythm a factor? They're intrinsic to the medium, so yes. Do composers balance their music like a formula in chemistry? Not that I've ever heard of, but maybe there's someone out there doing something that obscure

.
Hypothetically, if one were to add psychoacoustic resonance to a kick drum, they'd need to know the math of music theory to do so appropriately. When creating your own scales (rare!), or placing accents in meaningful places to blend duple with compound triple meter, you'll be doing some elementary math.
Also, some pieces of music are explorations of math in composition... different parts playing rhythmic structures based on prime numbers to create dissonance or harmony at predictable times throughout the piece. I've heard similar things done with multiplicative factors to create interesting counterpoint.
Specifically about electronic music, some sound design applications require a solid familiarity with math to get your hands dirty. Csound & Reaktor come to mind, and I'm sure there is a healthy ecosystem of similar tools. Also, since computers can precisely generate sounds between the notes in traditional western music, harmonizing these sounds will require the math of music theory (back to the rarity of custom scales).
Then there's programming DSPs (which I'm separating from Csound for some reason), and other computer sciency things... but think that's out of scope for a statement regarding composition.