If you're asking if there's a version of D&D that's pure math and no roleplay, the closest thing I can imagine would be Dragon Dice, or something with the mechanics of a very basic roguelike. The math in D&D itself such as in combat is affected by your character's stats and the encounters created by the DM, so the mechanics and the role playing are kind of tied together.