Added (n-digit-nums) helper function