def eCF(i):
    """
    Returns the first i terms of the (aperiodic) continued fraction 
    representation of e.
    """
    return [2] + [int((a+1) / 3 * 2) if a % 3 == 2 else 1 for a in range(1, i)]