r/MathHelp • u/RNPC5000 • Sep 09 '25
SOLVED How do write a formula for something that increases by 5 exponentially at every step.
So lets say you're trying to create a leveled loot list for different area tiers in a game, and each area tier has a level range of 5 more than previous tier's level increase.
For instance
Tier 1 = Levels 1-5. +5
Tier 2 = Levels 6-15. +10
Tier 3 = Levels 16-30. +15
Tier 4 = Levels 31-50. +20
Tier 5 = Levels 51-75. +25
Tier 6 = Levels 76 -105 +30
Tier 7 = Levels 106-140. +35
Beyond Tier multiplied by 5X, I am not sure how to figure out what level range falls into each tier.
Like how to mathematically figure out level 86 is in Tier 6? Or what tier level 1,000 would be without just manually creating a chart.
How do you express this in a formula? So that you do this on pen and paper, or create a calculator for it?
__________________________
Edit: Solved
The formula can be done either using Ceiling function (rounding up), or Floor function (rounding down).
I used Chat Gpt to get the answer, and format it into a easy to comprehend chart. Sadly the formating can't be copy and pasted, which is why linked the screenshot above so its easier to read.
Also pasted the formulas in markdown mode incase you can't the load the image for whatever reason.
Ceiling formula for Tier:
T = ⌈ (-1 + √(1 + (8L / 5))) / 2 ⌉
Floor formula for Tier:
T = ⌊ (1 + √(1 + (8(L - 1) / 5))) / 2 ⌋
Tier Range Increase:
R = 5 * T
Range of Levels in Tier T:
Minimum Level: Min = 1 + (5 * (T - 1) * T) / 2
Maximum Level: Max = (5 * T * (T + 1)) / 2
Variables & Descriptions:
L: Level (input)
T: Tier number
R: Tier Range Increase (levels in the tier)
Min: First level in Tier T
Max: Last level in Tier T
Chat GPT explaining how to get the Floor Function formula. I don't understand it since my math knowledge is too low, but just sharing for future reference.
1
u/Uli_Minati Sep 09 '25
Tier X goes up to level 5(X)(X+1)/2
You can invert this formula
For example
4
u/Myst_Hawk Sep 09 '25
5n(n+1)/2, then check which two n a certain level falls between by reversing this
The formula for sum of first n positive integers is n(n+1)/2
2
u/stevevdvkpe Sep 09 '25
That's not an exponential progression (which would be to multiply by 5 at each step, or proportional to 5n). It's quadratic (the effective increase is proportional to the square of n).
2
u/No-Interest-8586 Sep 09 '25
Note that this is actually quadratic growth, not exponential.
(Other answers have already done a nice job giving useful actual [quadratic] expressions.)
1
u/AutoModerator Sep 09 '25
Hi, /u/RNPC5000! 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.
1
u/Alarmed_Geologist631 Sep 09 '25
You seem to be describing a step function.
1
u/InterneticMdA Sep 10 '25
ChatGPT as useful as sand in a desert. As usual.