What does it mean for a function to have a period $a$ ? Informally, it means that the function values gets repeated after an increment of $a$ in the $x-$value. (domain value). Notationally,
$$a\textrm{ is period of }f\iff f(x)=f(x+a)~\forall~x,x+a\in\textrm{Dom(f)}$$
That gives us $na=na+a=n(a+1)$ and $b=b+a$ since $na$ and $b$ are domain values ($x-$values) for $f$ and $a$ is the period.
So, the definite integral remains the same.
Here's a simple diagram:
![Image](