Question: I am trying to integrate a version/source control system with my unity project. [This answer](http://answers.unity3d.com/answers/1251608/view.html) directed me towards using source/version control. (I dont know the difference.) 

The answer links to a tutorial which explains creating the repository and pushing it to a remote service. I followed the whole tutorial. But I still don't understand how this integrates with my current projects.

My question is that.

1. how can I do this locally
2. how will this make it possible to revert to previously-saved versions?

Answer: 
its very simple, since i<=($n+2) the total iterations will be 4.
for first iteration, 

```
$i=1 the value of s = 0+(2*1+5) = 7
$i=2 now s = 7+(2*2+5) = 16
$i=3 now s = 16+(2*3+5) = 27
$i=4 now s = 27+(2*4+5) = 40

```

Hope this explains.
Using pseudo code:

```
n = 2
a = 5
s = 0

for ( i in { 1...4 } ) {

    s = s + ( ( 2 * i ) + 5 )
}

```

So we have

```
s =  0 + ( ( 2 * 1 ) + 5 ) =  0 +  7 = 7
s =  7 + ( ( 2 * 2 ) + 5 ) =  7 +  9 = 16
s = 16 + ( ( 2 * 3 ) + 5 ) = 16 + 11 = 27
s = 27 + ( ( 2 * 4 ) + 5 ) = 27 + 13 = 40

```