Calculate the lowest number where the sum of the sequence of numbers exceeds a given value – codegolf.stackexchange.com

Given you have an infinite sequence of numbers defined as follows: 1: 1 = 1 2: 1 + 2 = 3 3: 1 + 3 = 4 4: 1 + 2 + 4 = 7 5: 1 + 5 = 6 6: 1 + 2 + 3 + 6 = 12 7: 1 + 7 = 8 ... The sequence is the sum of ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Calculate the lowest number where the sum of the sequence of numbers exceeds a given value – codegolf.stackexchange.com"