The document presents a new pilot assignment and channel estimation algorithm for multiuser massive MIMO systems, aiming to enhance performance in downlink communication scenarios. It details the system model, problem statement, proposed solutions, and simulation results demonstrating improvements in channel estimation accuracy, particularly with the use of weighted mean squared error (WSMSE) as an objective function. The findings indicate that the algorithm is optimal when the number of users matches the number of pilots.