When you have reality-distorting powers it’s hard to tell whether the universe is actually broken or you’re just high on cupcakes. Thankfully, the Scientific Method provides Pinkie Pie with a scientifically sound solution.
Math is awesome. Ponies are awesome. Math and ponies together? Stupendous!