EXAPUNKS
评价数不足
PASCAL'S TRIANGLE (NUMBER SEQUENCES)
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
1.791 KB
2018 年 8 月 25 日 上午 5:12
1 项改动说明 ( 查看 )

订阅以下载
PASCAL'S TRIANGLE (NUMBER SEQUENCES)

在 JereTheJuggler 的 1 个合集中
JereTheJuggler's Custom Exapunks Levels
8 件物品
描述
Pascal's Triangle is a famous infinite series of numbers that are stacked on top of each other to form a triangle. Each layer of the triangle has 1 more number than the previous row, and each number in the row is defined as being the sum of the 2 digits above it in the previous row.

You are given a file that contains a number that tells you which row of Pascal's Triangle you need to calculate, and your job is to write the contents of that row to a file in you home.

This one is a pretty easy level. My solution (optimizing size more than anything else) scored 660 Cycles, 31 Size, and 1 Activity


You can find out more about Pascal's Triangle here: https://en.wikipedia.org/wiki/Pascal%27s_triangle
It actually contains a lot of interesting properties pertaining to triangle numbers, square numbers, the Fibonacci Sequence, prime numbers, and more!