source-academy / sicp

XML sources of SICP and SICP JS, and support for generating Interactive SICP JS, PDF, e-book and comparison editions

Home Page:https://sourceacademy.org/sicpjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solution to Exercise 3.53

clean99 opened this issue · comments

This defines s to be a stream whose first element is 1 and the rest elements are the double of the stream's previous element.
For instance, the ith element is twice as many as the i - 1 element(i bigger than 1). The result of the stream is 1, 2, 4, 8, 16......