Given a number, say n = 201
S = { 2, 0, 1, 20, 201, 21}
I know this is not a rare question, but I haven't found the exact keywords including "permutations" "combinations" "[title]" etc
Any keywords/sources are also appreciated so I can research by myself!