Expansion of Perfect nth Power and Pascal's Triangle

This script will generate the expansion of the perfect nth power (x + y)n.

Please provide a positive integer:

 

xjiang@cccea.org