Implement a function find_suitable_x(n) that identifies all integers x such that the sum of x and the sum of its digits equals n. Specifically, the function should iterate over a possible range of integers, calculate the required condition, and collect the suitable integers.
Input/Output Requirements
Input:
A single integer n (0 <= n <= 1000000), representing the target sum of an integer x and the sum of its digits.
Output:
A tuple containing:
An integer k, the number of suitable integers found.
A list of suitable_x_values, which are the integers x that satisfy the condition x + digit_sum(x) == n.
Implementation Details
You will need to define an inner helper function called digit_sum(x) that calculates the sum of digits of x.
The function should utilize a loop that runs from max(0, n - 81) to n - 1 to find potential candidates for x, as digits can contribute a maximum sum of 81 for integers less than 100.
Ensure that the implementation is efficient and correct.
File Location
Implement the function in a file named /app/solution.py.