The routine MPI_Bcast sends data from one process to all others.
The routine MPI_Reduce combines data from all processes (by adding them in this case), and returning the result to a single process.