I am working on a reward points system for my game. So as we know the points needed to reach a level increases level by level. For example if it needs 200 points to reach from level 1 to 2, it will probably need 1000 points to reach level 9 to 10.
So I need a formula which can tell me the level points(points needed to reach a level) once I provide the total number of levels and total number of points. The points should be increasing uniformly from level to level. For ex. if I have 10 levels and 20000 points, I should be able to find the points needed to reach a level. Those points should be increasing uniformly level by level.


I am not sure if I interpret this question correctly, but I will post my answer anyway. I have $2$ answers actually, so I'll start with the simpler one. First of all though, I'll just state an assumption I'm making. I assume by "uniformly increasing level by level" what you want is an arithmetic progression of points i.e. the difference is additive. In other words, if $p_n$ is the points needed to reach level $n$ (from the previous level) then we want $p_{n+1} = p_n + d$ for some fixed $d$. I'm also going to take the convention that you start at level $0$ and that $p_0 = 0$ i.e. you start with no points. This seems like the most common-sense convention. Finally, let's call $L$ your number of levels, numbered $0$ through $L-1$. Level $L$ doesn't really exist but can be interpreted as the win-state of the game.
Case 1: Cumulative Points
In this interpretation, the points are cumulative. That is, the points earned from level $n$ carry over to level $n+1$, and count towards the points needed to get to level $n+2$. In this case, since the points difference is additive according to $p_{n+1} = p_n + d$, we get quite a simple formula for the points needed to reach a level: it is just an arithmetic series. So the points needed to reach the level $k$ is just $kd$. In particular, the points needed to reach level $L$, the win state, is the total number of points $T$, so we get $T = Ld$. Rearranging we can solve for $d$ in terms of $L$ and $T$:
$$d = \dfrac{T}{L}$$
And the (cumulative) points needed to reach level $k$ is then just:
$$p_k = kd = \dfrac{kT}{L}$$
Case 2: "Local" Points
In this case, the number of points you need to get from level $n$ to level $n+1$ is based only on points earned since entering level $n$. Again, this quantity must be increasing uniformly, so we get that the number of (local) points needed to get from level $k-1$ to level $k$ is $kd$. Now, because this is local, we must sum to get the total points. Then the total number of points $T$ is:
$$d + 2d + ... + Ld = d\sum_{i=1}^Li = \dfrac{dL(L + 1)}{2} = T$$
That step just applied the well-known formula for the triangle numbers. Now, rearranging to solve for $d$ we get:
$$d = \dfrac{2T}{L(L + 1)}$$
Now, the question asks for the "points needed to reach a level", which in this case will be local points earned only since starting that level. In this case, the number of points $p_k$ needed to reach level $k$ would be:
$$p_k = kd = \dfrac{2kT}{L(L + 1)}$$
Notes
Your results might not give you natural numbers, i.e. they may be fractions. This may be fine, but if you must work with natural numbers, then there are a few things you can do. One is that you can round up/down all the points i.e. do integer division, and settle for a slightly higher/lower total number of points. Another thing is to add the remainder from the division to the points needed to reach the last level. Another idea is to spread out the remainder randomly among different levels.