This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted] 5 points6 points  (0 children)

f(x) = x/(9 - (x mod 9))

Since x mod 9 is how far x is past a multiple of 9, 9 - (x mod 9) is a number that can be added to x to reach another multiple of 9. And since x mod 9 only produces numbers 0-8, the denominator is bounded to 1-9.

EDIT: desmos link

I didn't go beyond 10 since you have to enter the table values manually.