## Solutions
[[Python Basic Grammar#Compound Assignment Operators]]
###
```python
class Solution(object):
def xorOperation(self, n, start):
"""
:type n: int
:type start: int
:rtype: int
"""
result = 0
for i in range(n) :
nums = start + 2 * i
result ^= nums
return result
```
#### Complexity Analysis