Your question is Digit Puzzle With Equation. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
ION Markets receives compact numeric codes that follow a repeated-digit multiplication rule. Given a single-digit multiplier, find every three-digit number xyz such that multiplying it by the multiplier produces zzz, where x, y, and z are decimal digits and z is nonzero.
For the extracted case, the multiplier is 3, so the task is to solve xyz * 3 = zzz and identify the number and each digit.
Implement find_xyz_numbers(multiplier). Return a list of all three-digit integers 100x + 10y + z satisfying:
1 <= x <= 90 <= y <= 91 <= z <= 9(100x + 10y + z) * multiplier = 111zReturn results in ascending numeric order. The multiplier is an integer from 2 through 9.
def find_xyz_numbers(multiplier):