Consider the sequence that starts with 0,0 and 1, and in which every element is the sum of the three numbers before it:
0 0 1 1 2 4 7 13 24 44 81 149 274 504 927 ...Now construct the modular version, say for q=3. This sequence eventually repeats itself (it has period 26) but we only need the portion between two occurences of two consecutive zeroes:
0 0 1 1 2 1 1 1 0 2 0 2 1 0 0 ...Mark every element in the sequence which is equal to zero (yes, I do mean 0, not 1 as in the semi-affine case). Write down the positions of these marks:
sequence : 0 0 1 1 2 1 1 1 0 2 0 2 1 ( 0 0 ...) marks : # # # # numbering: 0 1 2 3 4 5 6 7 8 9 10 11 12 (13)You have just constructed the perfect CDS {0,1,8,10} with modulus 13. This is its difference table:
0 1 8 10 (13) 12 0 7 9 5 6 0 2 3 4 11 0As before, this trick only works when q is a prime number. Moreover, for most prime numbers we probably need another sequence.

Every number in the sequence is equal to A times the previous number plus B times the number before that, plus C times the number which stands 3 positions in front of the original number. The sequence always starts with 0,0,1.
The example above made use of the (1,1,1)-series. The next example uses (1,0,1) with q=2:
sequence : 0 0 1 1 1 2 3 4 6 9 13 19 28 41 60 88 ... mod 2 : 0 0 1 1 1 0 1 (0 0 1 1 1 0 1 0 0 ... marks : # # # numbering: 0 1 2 3 4 5 6 (7)This gives us the perfect CDS {0,1,5} modulo 7.
In general, for any prime q we may find an (A,B,C)-sequence such that the second consecutive pair of zeroes occurs at position q^2+q+1 (if we start counting positions at 0). Such a sequence - when taken modulo q - always generates a perfect CDS of modulus q^2+q+1 and size q+1 when you apply the procedure as sketched above.
For any given prime number q there are many (A,B,C)-sequences with the required properties, but there is no general rule to find them. The following rules may help to guide your search:

Projective planes
97/01/03 - Kris Coolsaet