The reason you were given for closing the question is terrible ("lacks sufficient information", what?), but you were basically asking a simple math question on a programming site.
This is the trouble with being too specific. It's often better to say: here's what I want to do and why, what's the best way to accomplish that? Describe your actual problem first, before getting into your attempted solution.
>It's often better to say: here's what I want to do and why, what's the best way to accomplish that?
Sounds like a great way to get your question torpedoed by overzealous moderators for being "not a good fit" since there's not a direct answer and it will "invite debate".
There are two math sites, Math Overflow is for professional mathematicians (and started outside the SE network). Math SE is for everyone with math questions.
This is the trouble with being too specific. It's often better to say: here's what I want to do and why, what's the best way to accomplish that? Describe your actual problem first, before getting into your attempted solution.