# Given formula X = N \* (N-1) \* t, find N = ....

**URL:** https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012
**Category:** Factual Questions
**Created:** [October 4, 2010, 4:40pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012 "2010-10-04T16:40:22Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Crowbar\_of\_Irony\_3](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@Crowbar\_of\_Irony\_3](https://boards.straightdope.com/u/Crowbar_of_Irony_3)
#### Post date: [October 4, 2010, 4:40pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/1 "2010-10-04T16:40:22Z")

</div>

My mathematics have been rusty for a while, and I couldn’t find a way to solve this.

Given the formula X = N \* (N-1) \* t, express it in terms of X.

So far I have

N \* (N-1) \* t = X  
N^2 - N \* t = X  
N^2 - N = X/t

And I am afraid I am stumped at this point. Is there something else I could do at this point?

---

<div class="post-metadata">

### Author: ![MikeS](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@MikeS](https://boards.straightdope.com/u/MikeS)
#### Post date: [October 4, 2010, 4:46pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/2 "2010-10-04T16:46:09Z")

</div>

That would be the [quadratic formula](http://en.wikipedia.org/wiki/Quadratic_equation). If you can’t see how to apply it and this isn’t some kind of homework problem, post again and I’m sure we can provide more details.

---

<div class="post-metadata">

### Author: ![mozchron](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@mozchron](https://boards.straightdope.com/u/mozchron)
#### Post date: [October 4, 2010, 4:48pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/3 "2010-10-04T16:48:13Z")

</div>

\<hint\> it’s a quadratic equation…

On edit, damn, beaten!

---

<div class="post-metadata">

### Author: ![Amblydoper](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Amblydoper](https://boards.straightdope.com/u/Amblydoper)
#### Post date: [October 4, 2010, 5:04pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/4 "2010-10-04T17:04:33Z")

</div>

Multiply that out, and you get…  
x = tN[sup]2[/sup] - tN (your second step is incorrect)

Apply the quadratic formula, and you get…  
N = [t ± sqrt(t[sup]2[/sup] - 4t(0))] / 2t  
N = [t ± t] / 2t  
N = 2t / 2t , 0 / 2t  
N = 1 , 0

Or, more easily done with factoring, since your “c” term = 0, you get  
x = N (tN - t)  
…N = 0  
…tN - t = 0  
…tN = t  
…N = 1  
N = 1 , 0

---

<div class="post-metadata">

### Author: ![mozchron](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@mozchron](https://boards.straightdope.com/u/mozchron)
#### Post date: [October 4, 2010, 5:12pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/5 "2010-10-04T17:12:55Z")

</div>

> [@Amblydoper](#):
>
> Multiply that out, and you get…  
> x = tN[sup]2[/sup] - tN (your second step is incorrect)
> 
> Apply the quadratic formula, and you get…  
> N = [t ± sqrt(t[sup]2[/sup] - 4t(0))] / 2t  
> N = [t ± t] / 2t  
> N = 2t / 2t , 0 / 2t  
> N = 1 , 0
> 
> Or, more easily done with factoring, since your “c” term = 0, you get  
> x = N (tN - t)  
> …N = 0  
> …tN - t = 0  
> …tN = t  
> …N = 1  
> N = 1 , 0

\<hint\> You’re doing it wrong… (“c” does not = 0).

tN[sup]2[/sup] - tN -X = 0

a = t  
b = -t  
c = -X

---

<div class="post-metadata">

### Author: ![naita](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/naita/32/5862_2.png) [@naita](https://boards.straightdope.com/u/naita)
#### Post date: [October 4, 2010, 5:16pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/6 "2010-10-04T17:16:34Z")

</div>

> [@Amblydoper](#):
>
> Multiply that out, and you get…  
> x = tN[sup]2[/sup] - tN (your second step is incorrect)
> 
> Apply the quadratic formula, and you get…  
> N = [t ± sqrt(t[sup]2[/sup] - 4t(0))] / 2t  
> N = [t ± t] / 2t  
> N = 2t / 2t , 0 / 2t  
> N = 1 , 0
> 
> Or, more easily done with factoring, since your “c” term = 0, you get  
> x = N (tN - t)  
> …N = 0  
> …tN - t = 0  
> …tN = t  
> …N = 1  
> N = 1 , 0

If the task is to describe N in terms of X, this is wrong.

---

<div class="post-metadata">

### Author: ![Amblydoper](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Amblydoper](https://boards.straightdope.com/u/Amblydoper)
#### Post date: [October 4, 2010, 5:58pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/7 "2010-10-04T17:58:56Z")

</div>

oops. I am wrong. sorry.

---

<div class="post-metadata">

### Author: ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)
#### Post date: [October 4, 2010, 11:51pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/8 "2010-10-04T23:51:23Z")

</div>

Why is it called solving for N in terms of x when there are so many t’s involved? Seriously, the answer has four (either way you express it).

---

<div class="post-metadata">

### Author: ![panamajack](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@panamajack](https://boards.straightdope.com/u/panamajack)
#### Post date: [October 5, 2010, 12:06am UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/9 "2010-10-05T00:06:55Z")

</div>

> [@BigT](#):
>
> Why is it called solving for N in terms of x when there are so many t’s involved? Seriously, the answer has four (either way you express it).

If you’re asking this out of sincere befuddlement, it’s because a single equation with terms involving three variables can’t be expressed without all three variables. So if you isolate one on one side of the equation, you must have the other two on the other side. (Okay, technically you can make a trivial example by having terms that cancel out, but that’s not the case here).  
Since the title of the OP had N=, that would seem to be what’s desired. It’s possible that in their case, t is considered a known constant rather than a variable. Otherwise it is incorrect to say that this “in terms of X” instead of “in terms of X and t” (which, if you weren’t confused about the basic concept, was probably your point).

---

<div class="post-metadata">

### Author: ![CookingWithGas](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cookingwithgas/32/485_2.png) [@CookingWithGas](https://boards.straightdope.com/u/CookingWithGas)
#### Post date: [October 5, 2010, 1:09am UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/10 "2010-10-05T01:09:10Z")

</div>

> [@BigT](#):
>
> Why is it called solving for N in terms of x when there are so many t’s involved? Seriously, the answer has four (either way you express it).

I think we are predisposed to think that t means time and is a variable, but it doesn’t have to be so. If the letter were a instead of t, it might look more like a constant and solving for X might seem more familiar.

---

<div class="post-metadata">

### Author: ![Crowbar\_of\_Irony\_3](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@Crowbar\_of\_Irony\_3](https://boards.straightdope.com/u/Crowbar_of_Irony_3)
#### Post date: [October 5, 2010, 5:37am UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/11 "2010-10-05T05:37:07Z")

</div>

Yeah, sorry for the confusion, t is a constant. I should have invert the casing of the alphabets (guess this shows long I have left school) as constants are typically capital letters.

I am still working out the formula. Trivial: The equation is how much experience points you need to reach the Nth level in Dungeons and Dragons.

---

<div class="post-metadata">

### Author: ![heavyarms553](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@heavyarms553](https://boards.straightdope.com/u/heavyarms553)
#### Post date: [October 5, 2010, 7:43pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/12 "2010-10-05T19:43:21Z")

</div>

> [@](#):
>
> Trivial: The equation is how much experience points you need to reach the Nth level in Dungeons and Dragons.

Niiiiiiice. I was sure it was homework.

---

<div class="post-metadata">

### Author: ![Irishman](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@Irishman](https://boards.straightdope.com/u/Irishman)
#### Post date: [October 5, 2010, 9:14pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/13 "2010-10-05T21:14:58Z")

</div>

So, what, you want to be able to determine how many levels a certain amount of experience points will earn you?

I remember seeing solutions to this before, but can’t recall if this involve differential equations or Laplace Transforms or something.

The only method I can replicate is trial and error solution.

Take the case where you know  
X = 3515  
t = 45

(I have no idea if these values are anywhere near representative, but the method should work.)

Take

N^2 - N = X/t

Plug in X and t and find X/t = 78.111…

You want an N \* (N-1) that equals 78.111…

Start with N^2 = 78.111…, then N = 8.838 Add that N to 78.111… = 86.949

Then square root that value = 9.32465

Now use 9.32465 as your “N”, add that to 78.111… = 87.93876

Square root = 9.3507  
Repeat to desired level of accuracy, keeping desired level of sig digs at each calculation above.

So for a t of 45, 3515 experience points can earn you 9 levels (assuming partial levels don’t count, always round down).

---

<div class="post-metadata">

### Author: ![naita](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/naita/32/5862_2.png) [@naita](https://boards.straightdope.com/u/naita)
#### Post date: [October 6, 2010, 11:06am UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/14 "2010-10-06T11:06:56Z")

</div>

> [@Irishman](#):
>
> So, what, you want to be able to determine how many levels a certain amount of experience points will earn you?
> 
> I remember seeing solutions to this before, but can’t recall if this involve differential equations or Laplace Transforms or something.
> 
> The only method I can replicate is trial and error solution.

Or you can solve the quadratic equation **mozchron** gave.

x = n\*(n-1)\*t

x/t = n^2 - n

n^2 - n - x/t = 0  
n = ( 1 ± sqrt(1 + 4xt) ) / 2

n = (sqrt(1 + 4x/t) + 1) / 2

x = 3515  
t = 45

|  
v

n = 9.35

So 3515 points gets you to level 9.

Doing a check with the original formula we see that:

x = n\*(n-1)\*t

t = 45

n = 9 -\> x = 3240  
n = 10 -\> x = 4050

---

<div class="post-metadata">

### Author: ![Irishman](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@Irishman](https://boards.straightdope.com/u/Irishman)
#### Post date: [October 7, 2010, 6:09pm UTC](https://boards.straightdope.com/t/given-formula-x-n-n-1-t-find-n/556012/15 "2010-10-07T18:09:00Z")

</div>

Oops, you are correct, the quadratic formula can solve any individual case.

I was caught up in how to solve that kind of process. Not necessary for the simple formula provided.
