This question shows a counter-example to the statement
If $X_1,\dots,X_n,X_{n+1}$ are pairwise independent, then $\sum_{i=1}^n X_i$ is independent of $X_{n+1}.$
I wonder if the following statement is true (my professor used it in class but I was not convinced about it, especially after seeing the above linked question):
If $X_1,\dots,X_n,X_{n+1}$ are i.i.d. variables (note that besides from pairwise independency we are assuming that these variables are also identically distributed), then $\sum_{i=1}^n X_i$ is independent of $X_{n+1}$.
Any hint or full answer to my question is highly apreciatted. Thanks for any help in advance.