*** Welcome to piglix ***

Superincreasing sequence


In mathematics, a sequence of positive real numbers is called superincreasing if every element of the sequence is greater than the sum of all previous elements in the sequence.

Formally, written:

For example, (1,3,6,13,27,52) is a superincreasing sequence, but (1,3,4,9,15,25) is not. The following Python source code tests a sequence of numbers to determine if it is superincreasing:

This produces the following output:


...
Wikipedia

...