This doesn't seem to work right for negative numbers. The article says the rule is "each number must be larger than the one before it", but if you try -2 -4 -6 it says that pattern doesn't match the rule.
Maybe I'm just being pedantic here, but last I checked -6 was larger than -4.