General
Material
Lecture 1
Lecture 2
Lecture 3
Lecture 4
Lecture 5

Solution

%% the string can be empty
aeven --> [].

% the string can consist of two a's followed by an even number of a's
aeven --> onea, onea, aeven.

onea --> [a].
    

Back to the exercise.