--- from: http://rosettacode.org/wiki/Integer_sequence