Experience to Level Algorithm PHP
I am developing a Game and I didn't want an array full of levels that would most likely increase page load when iterating through them to find the users Level. I needed an algorithm to work this out independently with only the User's experience to hand. This is because I want the max Level to be around 1,000, and an array that long would take some time to go through.

I have, with some help, come up with the following algorithm for the difference between each level:

	difference = difference + (difference / 7)

And it works well on the lower-levels, but this graph is the Levels 1-141, and as you can see, it's extremely easy up until about half way, then it shoots up and carries on shooting up, until it gets to the point 1,500,000,000 Experience is Level ~250, which isn't good enough.

![The Graph for Levels 1-141][1]

So, my question is, what do you think is a better way to do the difference between each level? Any advice is welcome, I will test all algorithms.

Thanks.


  [1]: http://i.stack.imgur.com/eOs4v.png
Experience to Level Algorithm PHP
===

I am developing a Game and I didn't want an array full of levels that would most likely increase page load when iterating through them to find the users Level. I needed an algorithm to work this out independently with only the User's experience to hand. This is because I want the max Level to be around 1,000, and an array that long would take some time to go through.

I have, with some help, come up with the following algorithm for the difference between each level:

	difference = difference + (difference / 7)

And it works well on the lower-levels, but this graph is the Levels 1-141, and as you can see, it's extremely easy up until about half way, then it shoots up and carries on shooting up, until it gets to the point 1,500,000,000 Experience is Level ~250, which isn't good enough.

![The Graph for Levels 1-141][1]

So, my question is, what do you think is a better way to do the difference between each level? Any advice is welcome, I will test all algorithms.

Thanks.


  [1]: http://i.stack.imgur.com/eOs4v.png