Created
November 19, 2012 20:28
-
-
Save kiritsuku/4113670 to your computer and use it in GitHub Desktop.
corec tribonacci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trib = 1 : 1 : 1 : zipWith (+) trib (zipWith (+) (tail trib) (tail (tail trib))) | |
| take 15 trib --[1,1,1,3,5,9,17,31,57,105,193,355,653,1201,2209] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment