Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I would like to note that you can solve "The Problem" without code, by getting 21 pink, 63 green and then dividing by 3, which is much simpler.

FYI: I'm not concerned with just finding a solution, that can be done with manual bruteforce calculations. I was concerned with finding a more "mathematical" approach, which I didn't find (and thus resorted to code). The solution listed in the doc is, however, the shortest solution, which could be considered the "simplest", going by that metric.

(1 edit)

As the wiki now explains, (1, 1) -> (9, 3) -> (3, 1) -> (na, nb) -> (a, b), originally found by me, is the "mathematical" approach you seek (it works for any a, b)