Overview
Given d, k, and s, the set of numbers that when written in base (2d + 1)
use only digits 0,...,d and whose digits squared sum to s is guaranteed to
be free of arithmetic progressions.
Operation
Select d and k and enter s, then click "Go!". The applet will display
the corresponding numbers along with their base-(2d + 1) representations.
(Warning: the larger k is the longer the applet takes to run.)