Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Display a given number of rows in Pascal's triangle
ResourceFunction["PascalsTriangle"][n] creates a grid representing the first n rows of Pascal's triangle. |
Display the first five rows of Pascal's triangle:
In[1]:= |
Out[1]= |
Display the first seven rows of Pascal's triangle:
In[2]:= |
Out[2]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License