https://wikimass.com/python/number-pattern-29