Lab: Numeric recursion

Assigned
Monday, 9 October 2023
Summary
In this laboratory, you will explore the basics of recursion over natural numbers.

In this lab, we’ll continue our exploration of recursion by considering how we might recurse over numbers.

Preparation

a. Introduce yourself to your partner, discuss strengths and weaknesses, agree upon work procedures, etc.

b. The person nearest the board is Side A. The other person is Side B. Grab the code from:

Problem 6: Triangles

Here are example Sierpinsky triangles for levels \(n = 1\), \(n = 2\), and \(n = 3\):

Sierpinsky triangles for levels 1, 2, and 3