The document presents a theoretical equation to optimize the number of data partitions when broadcasting data on a balanced n-ary tree peer-to-peer system. The author applies this equation to improve the performance of image broadcasting in SOLAR-CATS, a computer-assisted teaching system that uses P2P technology. Experimental results show partitioning the data according to the theoretical optimization reduces image broadcast times. The author concludes the equation and experiments are consistent with textbook guidance on network programming.