r/MathHelp • • May 30 '21

Creating an easy math equation for damage calculation

I'm playing a tabletop and have an attack that has an odd way to scale damage. I want to make an equation so I can more easily plug in one variable and it automatically calculates the damage.

The move scales based on how many times I hit with a specific but different move (stacks). The explanation of the damage is that it deals a base 10 per stack; plus 2^x per stack as well. For example if I had 5 stacks it would deal a base 50 damage plus 2+4+8+16+32. The closest I can get to a correct equation is this: 10x + (2^x). However this doesn't include any of the damage previous to the chunk of 32. I was thinking maybe a factorial needs to be placed in there or some other notation that I don't quite remember.

Any help would be greatly appreciated. I'm a little out of practice.

9 Upvotes

4 comments sorted by

3

u/Just_534 May 30 '21

I think what you’re looking for is Sigma notation or summation. you’d have 10x + ∑ 2x

and then you’d have 1 at the bottom of the sigma symbol indicating starting point, and X at the top indicating the end point.

5

u/Name-in-progress May 30 '21 edited May 30 '21

Since 2x is a geometric series could also further simplify it to just

10x +2x+1-2

5

u/Just_534 May 30 '21

Ooooh, i forgot about geometric series! This is probably the equation OP is best looking for then.

1

u/AutoModerator May 30 '21

This is an automated reminder:

  • What have you tried so far? (See Rule #2; to add an image, you may upload it to an external image-sharing site like Imgur and include the link in your post.)

  • Please don't delete your post. (See Rule #7)

We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.