fixed bug with offsets for subproblems; Parberry's now works for all multiples of 6, 8, and 10