Thanks. But you counted too many this way. For example, 5) if 5, then: 1x2x2x2x2 there are only 5 ways, because once you select 3 as second digit, there is only one choice