Length of a Sumac sequence – codegolf.stackexchange.com

A Sumac sequence starts with two integers: t1 and t2. The next term, t3, = t1 - t2 More generally, tn = tn-2 - tn-1 The sequence ends when tn < 0. Your challenge: Write a program or function ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Length of a Sumac sequence – codegolf.stackexchange.com"