Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gmcninch-tufts
GitHub Repository: gmcninch-tufts/2024-Sp-Math190
Path: blob/main/course-assignments/PS05--ECC--solutions.md
908 views
---
title: | ProblemSet 5 -- Solutions of equations and cyclic codes -- solutions author: George McNinch date: due 2024-03-29
---

\newcommand{\F}{\mathbb{F}} \newcommand{\trivial}{\mathbf{1}}

\newcommand{\GL}{\operatorname{GL}}

\newcommand{\PP}{\mathbb{P}}

\newcommand{\tr}{\operatorname{tr}} \newcommand{\weight}{\operatorname{weight}}

  1. Let qq be a power of a prime p>3p > 3 and let ParseError: KaTeX parse error: Undefined control sequence: \F at position 5: k = \̲F̲_q.

    For a homogeneous polynomial Fk[X,Y,Z,W]F \in k[X,Y,Z,W], let us write ParseError: KaTeX parse error: Undefined control sequence: \PP at position 29: … (x:y:z:w) \in \̲P̲P̲^3_k \mid F(x,y… for the set of solutions of the equation F=0F=0 in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^3_k.

    For ak×a \in k^\times, consider the polynomial Fa=XY+Z2aW2k[X,Y,Z,W].F_a = XY + Z^2 - aW^2 \in k[X,Y,Z,W].

    a. If 4q14 \mid q -1 show that V(Fa)=V(X2+Y2+Z2aW2)|V(F_a)| = |V(X^2 + Y^2 + Z^2 - aW^2)|

    Hint: First show that X2+Y2+Z2aW2X^2 + Y^2 + Z^2 - aW^2 is obtained from FaF_a by a linear change of variables.

    ::: {.solution}

    Recall that ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^\times is a cyclic group of order q1q-1. This cyclic group contains an element ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: i \in \̲F̲_q^\times of order 4 if and only if 4q14 \mid q-1.

    If this is the case, then i2=1i^2 = -1 since 1-1 is the unique element of ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^\times of order 22.

    Now, we have X2+Y2=(X+iY)(XiY)X^2 + Y^2 = (X + iY) (X - iY).

    Thus X2+Y2+Z2aW2=(X+iY)(XiY)+Z2aW2=XY+Z2aW2=Fa(X,Y,Z,W).X^2 + Y^2 + Z^2 - aW^2 = (X + iY) (X- iY) + Z^2 - a W^2 = X'Y' + Z^2 - a W^2 = F_a(X',Y',Z,W).

    Thus using the linear change of variables X=X+iYX' = X + iY and Y=XiYY'= X - iY, we find a bijection between the sets V(Fa)V(F_a) and V(X2+Y2ZW)=V(X2+Y2ZW).V(X'^2 + Y'^2 - ZW) = V(X^2 + Y^2 - ZW).

    In particular, we thus have V(Fa)=V(X2+Y2ZW).|V(F_a)| = |V(X^2 + Y^2 - ZW)|.

    :::

    b. If a=1a = 1, show that V(F1)=q2+2q+1|V(F_1)| = q^2 + 2q + 1.

    Hint: Making a linear change of variables, first show that V(F1)=V(G)|V(F_1)| = |V(G)| where G=XY+ZWG = XY + ZW.

    To count the points (x:y:z:w)(x:y:z:w) in V(G)V(G), first count the points with xy=0xy = 0 (and hence also zw=0zw = 0), and then the points with xy0xy \ne 0.

    ::: {.solution}

    Arguing as in (a), we see that after a linear change of variables, we may replace F1=XY+Z2W2F_1 = XY + Z^2 - W^2 by XY+ZWXY + ZW; in particular, there is a bijection between V(XY+Z2W2)V(XY + Z^2 - W^2) and V(XY+ZW)V(XY + ZW).

    We now compute V|V| where V=V(XY+ZW)V = V(XY + ZW).

    A point ParseError: KaTeX parse error: Undefined control sequence: \PP at position 15: (x:y:z:w) \in \̲P̲P̲^3 is in VV if and only if xy=zwxy = -zw.

    • We first count the points with xy=0=zwxy = 0 = zw.

      One possibility is that exactly one of {x,y,z,w}\{x,y,z,w\} is non-zero. There are 4 such points, namely:

      (1:0:0:0),(0:1:0:0),(0:0:1:0),(0:0:0:1).(1:0:0:0), (0:1:0:0), (0:0:1:0), (0:0:0:1).

      If more than one of {x,y,z,w}\{x,y,z,w\} is non-zero, then at exactly one of {x,y}\{x,y\} is zero, and since we work in projective space we may consider points where exactly one of {x,y}\{x,y\} is equal to 1.

      There are exactly q1q-1 points of the form (1:0:a:0)(1:0:a:0) for ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: a \in \̲F̲_q; more generally, it is easy to see that there are 4(q1)4(q-1) points with xy=0=zwxy = 0 = zw for which exactly one of {x,y}\{x,y\} is zero.

      In particular, we now see that there are 4(q1)+4=4q4(q-1)+4 = 4q points (x:y:z:w)(x:y:z:w) in VV with xy=0xy = 0.

    • Now we count the points in VV with xy0xy \ne 0. After observing that (x:y:z:w)(x:y:z:w) by (1:x/y:z/x:w/x),(1:x/y:z/x:w/x), we see that we need to count the number of points (1:y:z:w)(1:y:z:w) with zw=yzw = -y and y0y \ne 0.

      There are q1q-1 possibilities for ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: y \in \̲F̲_q^\times, and for each such yy, there are q1q-1 pairs ParseError: KaTeX parse error: Undefined control sequence: \F at position 11: (z,w) \in \̲F̲_q^2 for which zw=yzw = -y.

      Thus there are (q1)2(q-1)^2 points (x:y:z:w)V(x:y:z:w) \in V with xy0xy \ne 0.

    We now see that the total number of points in VV is given by V=4q+(q1)2=q2+2q+1=(q+1)2.|V| = 4q + (q-1)^2 = q^2 + 2q + 1 = (q+1)^2.

    Remark In fact, one can show that ParseError: KaTeX parse error: Undefined control sequence: \PP at position 10: V \simeq \̲P̲P̲^1 \times \PP^1, which explains that ParseError: KaTeX parse error: Undefined control sequence: \PP at position 8: |V| = |\̲P̲P̲^1|^2 = (q+1)^2. :::

    Let S={a2ak}S = \{ a^2 \mid a \in k\}.

    c. Show that S=q+12|S| = \dfrac{q+1}{2}. Conclude that there are qq+12=q12q - \dfrac{q+1}{2} = \dfrac{q-1}{2} non-squares in kk.

    ::: {.solution} Consider the group homomorphism ParseError: KaTeX parse error: Undefined control sequence: \F at position 6: \phi:\̲F̲_q^{\times} \to… given by ϕ(x)=x2\phi(x) = x^2.

    The kernel of ϕ\phi is the set of elements of ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^\times whose order divides 2; since ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^\times is cyclic and since pp is odd, kerϕ\ker \phi has order 2 (in fact, kerϕ={±1}\ker \phi = \{\pm 1\}).

    By the first isomorphism theorem, we see that the image of ϕ\phi has order ParseError: KaTeX parse error: Undefined control sequence: \F at position 36: …}(\phi)| = |\̲F̲_q^\times|/|\ke….

    Thus there are (q1)/2(q-1)/2 non-zero squares in ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q; since 00 is also a square, we see that S=(q1)/2+1=(q+1)/2.|S| = (q-1)/2 + 1 = (q+1)/2.

    In particular, there are qS=q(q+1)/2=(q1)/2q - |S| = q - (q+1)/2 = (q-1)/2 non-squares in ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q.

    :::

    d. If aSa \in S, show that V(Fa)=V(F1)=q2+2q+1|V(F_a)| = |V(F_1)| = q^2 + 2q + 1.

    I should have stipulated that the assumption q1(mod4)q \equiv 1 \pmod 4 is still in effect

    ::: {.solution}

    For aSa \in S, we know that F1F_1 is obtained by a linear change-of-variables from FaF_a. Indeed, writing a=t2a = t^2 we see that Fa=XY+Z2aW2=XY+(ZtW)(Z+tW)=XY+ZWF_a = XY + Z^2 - a W^2 = XY + (Z - tW)(Z + tW) = XY + Z'W' where Z=ZtWZ' = Z - tW and W=Z+tWW' = Z + tW.

    In other words, we can obtain XY+ZWXY + ZW from FaF_a through a linear change of variables.

    Since q1(mod4)q \equiv 1 \pmod 4, we've already seen (above) that XY+Z2+W2=F1XY + Z^2 + W^2 = F_1 can be obtained by a linear change of variables from XY+ZWXY + ZW.

    Thus, F1F_1 can be obtained by a linear change of variables from FaF_a.

    Now, this linear change-of-variables defines a bijection between V(Fa)V(F_a) and V(F1)V(F_1). In particular, we have V(Fa)=V(F1)=(q+1)2.|V(F_a)| = |V(F_1)| = (q+1)^2.

    :::

    e. If aka \in k, a∉Sa \not \in S, show for any αk×\alpha \in k^\times that there are exactly q+1q+1 pairs (c,d)k×k(c,d) \in k \times k with c2ad2=αc^2 - ad^2 = \alpha.

    Hint: We may identify ParseError: KaTeX parse error: Undefined control sequence: \F at position 8: \ell = \̲F̲_{q^2} = \F_…. Under this identification, the norm homomorphism N=N/k:×k×N=N_{\ell/k}: \ell^\times \to k^\times is given by the formula N(c+da)=(c+da)(cda)=c2ad2.N(c + d\sqrt{a}) = (c+d\sqrt{a})(c-d\sqrt{a}) = c^2 - ad^2. On the other hand, by Galois Theory, we have N(x)=xxq=x1+qN(x) = x \cdot x^q = x^{1+q} for any xx \in \ell. Thus N(×)=k×N(\ell^\times) = k^\times and kerN=q+1|\ker N| = q+1.

    ::: {.solution}

    On the one hand, the image of the norm homomorphism ×k×\ell^\times \to k^\times is given by {c2ad2(0,0)(c,d)k2}.\{c^2 - a d^2 \mid (0,0) \ne (c,d) \in k^2\}.

    On the other hand, ×\ell^\times is cyclic of order q21q^2 -1 and k×k^\times is cyclic of order q1q-1. The norm mapping is given by xx1+qx \mapsto x^{1+q}. Thus the norm mapping is onto and kerN\ker N is cyclic of order q+1q+1.

    In particular, it follows that the norm mapping N:×k×N:\ell^\times \to k^\times is onto, and for each αK×\alpha \in K^\times there are exactly q+1q+1 elements y=c+day = c + d\sqrt{a} \in \ell for which α=N(y)=c2ad2\alpha = N(y) = c^2 - ad^2.

    :::

    f. If aka \in k, a∉Sa \not \in S show that V(Fa)=q2+1|V(F_a)| = q^2 + 1

    Hint: Notice that the equation Z2aW2=0Z^2 - aW^2 = 0 has no solutions ParseError: KaTeX parse error: Undefined control sequence: \PP at position 11: (z:w) \in \̲P̲P̲^1_k, and use (e) to help count.

    ::: {.solution}

    We count the number of points ParseError: KaTeX parse error: Undefined control sequence: \PP at position 15: (x:y:z:w) \in \̲P̲P̲^3 for which xyaz2+w2xy - az^2 + w^2.

    Note that if xy=0xy = 0 there are exactly two solutions. Indeed, since aa is not a square, we have $$-az^2 + w^2 = N(w + z\sqrt{a}) = 0 \quad \text{if and only if} \quad w + z\sqrt{a} = 0 \quad \text{ in $\ellParseError: KaTeX parse error: Expected 'EOF', got '}' at position 1: }̲sotheonlysolutionsinthiscaseare so the only solutions in this case are (1:0:0:0),(0:1:0:0).(1:0:0:0), (0:1:0:0).$

    Now suppose that xy0xy \ne 0. After division by xx, we must count all points (1:y:z:w)(1:y:z:w) for which y=N(w+za)-y = N(w + z\sqrt{a}). There are q1q-1 possibilities for yy and -- according to the preceding part e. -- for each yy there are exactly q+1q+1 possibilities for (z,w)(z,w). Thus there are (q1)(q+1)(q-1)(q+1) solutions with xy0xy \ne 0.

    Finally, we see that the total number of solutions is given by 2+(q1)(q+1)=2+q21=q2+1.2 + (q-1)(q+1) = 2 + q^2 -1 = q^2 + 1.

    :::

  2. Let ParseError: KaTeX parse error: Undefined control sequence: \F at position 20: …T^{11} - 1 \in \̲F̲_4[T].

    a. Show that T111T^{11} -1 has a root in ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{4^5}.

    ::: {.solution}

    Note that 45=4162452431(mod11).4^5 = 4 \cdot 16^2 \equiv 4 \cdot 5^2 \equiv 4 \cdot 3 \equiv 1 \pmod {11}.

    Since ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{4^5}^\times is a cyclic group whose order 4514^5 -1 is divisible by 11, it follows that ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{4^5}^\times has an element aa of order 1111. This element ParseError: KaTeX parse error: Undefined control sequence: \F at position 10: a \in \̲F̲_{4^5} is then a root of T111T^{11} - 1.

    :::

    b. If αF45\alpha \in F_{4^5} is a primitive element -- i.e. an element of order 4514^5 -1, find an element ParseError: KaTeX parse error: Undefined control sequence: \F at position 21: …alpha^i \in \̲F̲_{4^5} of order 1111, for a suitable ii.

    ::: {.solution}

    If ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{4^5}^\times =… then β\beta has order 4514^5 -1, so that a=β(451)/11a = \beta^{(4^5-1)/11} is an element of order 11.

    :::

    c. Show that the minimal polynomial gg of aa over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4 has degree 5, and that the roots of gg are powers of aa. Which powers?

    ::: {.solution}

    We know that the Galois group of the extension ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4 \subset \… is cyclic of order 5, and is generated by the Frobenius automorphism σ:xx4\sigma:x \mapsto x^4.

    Since ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4 \subset \F_{… is a Galois extension (all extensions of finite fields are galois!) we know for ParseError: KaTeX parse error: Undefined control sequence: \F at position 10: y \in \̲F̲_{4^5} that ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: y \in \̲F̲_4 if and only if σ(y)=y\sigma(y) = y i.e. if and only if y=y4y = y^4.

    Similarly, we know that a polynomial ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_{4^5}[T] satisfies ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_4[T] if and only if g=σ(g)g = \sigma(g) [^1]

    [^1]: For a polynomial ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_{4^5}[T], the application σ(f)\sigma(f) applies σ\sigma to the coefficients of gg, and σ(T)=T\sigma(T) = T. If g=i=0NaiTig = \sum_{i=0}^N a_i T^i then σ(g)=i=0Nσ(ai)Ti\sigma(g) = \sum_{i=0}^N \sigma(a_i) T^i.

    Now, define a polynomial ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_{4^5}[T] by the rule g=i=04(Ta4i).g = \prod_{i = 0}^4 (T - a^{4^i}).

    Note that aa is a root of gg, and that σ(g)=i=04(Tσ(a4i))=i=04(Ta4i+1)=g\sigma(g) = \prod_{i=0}^4 (T - \sigma(a^{4^i})) = \prod_{i=0}^4 (T - a^{4^{i+1}}) = g since a45=aa^{4^5} = a.

    It follows that ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_4[T]. Since the Galois group acts transitively on the roots of gg, it follows that gg is irreducible over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4; gg is thus the minimal polynomial of aa over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4.

    It is clear that gg has degree 5; moreover its roots are aia^i for ii in the list [1,4,4^2,4^3,4^4]; since aa has order 11, these roots are the elements aia^i for ii in the list [1,4,5,9,3] obtained by reducing the power 4j4^j modulo 11.

    :::

    d. Show that f=gh(T1)f = g\cdot h \cdot (T-1) for another irreducible polynomial ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: h \in \̲F̲_4[T] of degree 5. The roots of hh are again powers of aa. Which powers?

    ::: {.solution}

    We define ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: h \in \̲F̲_{4^5}[T] by the rule h=i=04(Ta24i).h = \prod_{i=0}^4 (T - a^{2 \cdot 4^i}). Then once again σ(h)=h\sigma(h) = h so that ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: h \in \̲F̲_4[T], and again hh is irreducible over degree 5. Moreover, gg is the minimal polynomial of a2a^2 over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4.

    Since 1, aa and a2a^2 are roots of f=T111f=T^{11}-1, it follows that the minimal polynomials of these three elements divide ff. These minimal polynomials are T1,g,hT-1,g,h respectively. Since these three polynomials are relatively prime, we find that their productd (T1)gh(T-1)\cdot g\cdot h divides ff, and then for degree reasons we see that f=(T1)ghf = (T-1) \cdot g \cdot h (note that ff, gg, hh are all monic!)

    :::

    b. Show that f\langle f \rangle is a [11,6,d]4[11,6,d]_4 code for which d4d \ge 4.

    Typo: that should have been g\langle g \rangle rather than f.\langle f \rangle.

    ::: {.solution}

    We need to compute the minimal degree of the code , so we use SageMath.

    We first get the degree 5 irreducible factors of f = T^11 - 1 over GF(4):

    k = GF(4) R.<T> = PolynomialRing(k) f = T^11 - 1 ff = f.factor() g,_ = ff[1] h,_ = ff[2] (g,h) => (T^5 + z2*T^4 + T^3 + T^2 + (z2 + 1)*T + 1, T^5 + (z2 + 1)*T^4 + T^3 + T^2 + z2*T + 1)

    Now we include the (previously used) code for computing minimal distance of a cyclic code:

    V = VectorSpace(k,11) def pad(ll,n): # pad the list ll with 0's to make it have length n x = len(ll) if x < n: return ll + (n-x)*[0] else: return ll[0:n] def vectorize(p,n): # make a vector of length n out of a polynomial coeffs = p.coefficients(sparse=False) return V(pad(coeffs,n)) def mkCode(p): # vectorize the polynomial T^i * p and use the vectors as a basis for the code C # I'm assuming deg p = 5... return V.subspace([ vectorize( T^i * p, 11) for i in range(6) ]) C1 = mkCode(g) C2 = mkCode(h) def weight(v): r = [x for x in v if x != 0] return len(r) def min_distance(D): # brute-force computation of minimal distance of D return min([ weight(v) for v in D if v != 0]) [ min_distance(c) for c in [C1,C2]] => [5, 5]

    This shows that the minimal distance of the code g\langle g \rangle (and of the code h\langle h \rangle) is 5.

    :::

  3. Consider the following variant of a Reed-Solomon code: let ParseError: KaTeX parse error: Undefined control sequence: \F at position 21: …cal{P} \subset \̲F̲_q be a subset with n=Pn = |\mathcal{P}| and write P={a1,,an}\mathcal{P} = \{a_1,\cdots,a_n\}.

    Let 1kn1 \le k \le n and write ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q[T]_{< k} for the space of polynomial of degree <k< k, and let

    ParseError: KaTeX parse error: Undefined control sequence: \F at position 11: C \subset \̲F̲_q^n be given by ParseError: KaTeX parse error: Undefined control sequence: \F at position 42: …n)) \mid p \in \̲F̲_q[T]_{

    a. If nkn \ge k, prove that CC is a [n,k,nk+1]q[n,k,n-k+1]_q-code.

    ::: {.solution} It is clear from the construction that ParseError: KaTeX parse error: Undefined control sequence: \F at position 11: C \subset \̲F̲_q^n. Moreover, dimC=k\dim C = k since that mapping ParseError: KaTeX parse error: Undefined control sequence: \F at position 6: \phi:\̲F̲_q[T]_{ is injective and ParseError: KaTeX parse error: Undefined control sequence: \F at position 6: \dim \̲F̲_q[T]_{.

    Finally, the minimal distance dd of the (linear) code CC is the minimal weight of a non-zero vector in C.C. If x=ϕ(f)Cx = \phi(f) \in C, we have ParseError: KaTeX parse error: Undefined control sequence: \weight at position 5: n + \̲w̲e̲i̲g̲h̲t̲(x) = \#\{ roots of ff }\}. Since ff has degree <k<k, ff has no more than k1k-1 roots; this shows that ParseError: KaTeX parse error: Undefined control sequence: \weight at position 1: \̲w̲e̲i̲g̲h̲t̲(x) \ge n - k +…. This shows that dnk+1d \ge n - k + 1.

    To see that d=nk+1d = n-k+1, note that ParseError: KaTeX parse error: Undefined control sequence: \F at position 14: k \le n \le |\̲F̲_q| so that we may find kk distinct elements α1,,αk1\alpha_1,\cdots,\alpha_{k-1} of P\mathcal{P}. Now let ff be a monic polynomial of degree k1k-1 with these k1k-1 roots; thus f(T)=i=1n(Tαi).f(T) = \prod_{i=1}^n (T - \alpha_i).

    Then ParseError: KaTeX parse error: Undefined control sequence: \weight at position 1: \̲w̲e̲i̲g̲h̲t̲(f) = n - k + 1, so indeed d=nk+1d = n-k+1.

    We have now shown that CC is a [n,k,nk+1]q[n,k,n-k+1]_q-code. :::

    b. If ParseError: KaTeX parse error: Undefined control sequence: \F at position 5: P = \̲F̲_q^\times, prove that CC is a cyclic code.

    ::: {.solution} We show that for a suitable ordering of P\mathcal{P}, the code CC is cyclic.

    We fix a generator α\alpha for the (cyclic) multiplicative group ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^\times. Thus P=α={1,α,α2,,αq2}.\mathcal{P} = \langle \alpha \rangle = \{1,\alpha,\alpha^2,\cdots,\alpha^{q-2}\}. Now, for ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: f \in \̲F̲_q[T]_{, the corresponding code-word is (f(1),f(α),f(α2),,f(αq2))C.(f(1),f(\alpha),f(\alpha^2),\cdots,f(\alpha^{q-2})) \in C.

    To see that CC is cyclic, we must argue that ()(f(αq2),f(1),f(α),,f(αq3))C.(\heartsuit) \quad (f(\alpha^{q-2}),f(1),f(\alpha),\cdots,f(\alpha^{q-3})) \in C.

    Well, let ParseError: KaTeX parse error: Undefined control sequence: \F at position 29: …ha^{-1} T) \in \̲F̲_q[T]. Then degg=degf<k\deg g = \deg f < k so that ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_q[T]_{. Thus x=ϕ(g)Cx = \phi(g) \in C. We now note that

    x=(g(1),g(α),g(α2),,g(αq2))=(f(α1),f(α1α),f(α1α2),,f(α1αq2))=(f(α1),f(1),f(α),,f(αq3))\begin{align*} x=(g(1),g(\alpha),g(\alpha^2),\cdots,g(\alpha^{q-2})) &= (f(\alpha^{-1}),f(\alpha^{-1}\alpha),f(\alpha^{-1}\alpha^2),\cdots,f(\alpha^{-1}\alpha^{q-2})) \\ &= (f(\alpha^{-1}),f(1),f(\alpha),\cdots,f(\alpha^{q-3})) \end{align*}

    so indeed ()(\heartsuit) holds. This proves that P\mathcal{P} is cyclic. :::

    c. If q=pq = p is prime and if ParseError: KaTeX parse error: Undefined control sequence: \F at position 5: P = \̲F̲_p, prove that CC is a cyclic code.

    ::: {.solution} Again, we show *for a suitable ordering of P\mathcal{P} that CC is cyclic.

    Note that ParseError: KaTeX parse error: Undefined control sequence: \F at position 15: \mathcal{P} = \̲F̲_p may be written P={0,1,2,,p1}.\mathcal{P} = \{0,1,2,\cdots,p-1\}.

    For an arbitrary ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: f \in \̲F̲_q[T]_{, the corresponding codeword ϕ(f)\phi(f) is given by (f(0),f(1),f(2),,f(p1)).(f(0),f(1),f(2),\cdots,f(p-1)).

    To see that CC is cyclic, we must argue that ()(f(p1),f(0),f(1),,f(p2))C.(\diamondsuit) \quad (f(p-1),f(0),f(1),\cdots,f(p-2)) \in C.

    We set ParseError: KaTeX parse error: Undefined control sequence: \F at position 19: …) = f(T-1) \in \̲F̲_[T], and we note that degg=degf\deg g = \deg f so that ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_q[T]_{. Thus x=ϕ(g)Cx = \phi(g) \in C.

    Now we calculcate x=(g(0),g(1),g(2),,g(p1))=(f(01),f(11),f(21),,f(p11))=(f(p1),f(0),f(1),,f(p2))\begin{align*} x = (g(0),g(1),g(2),\cdots,g(p-1)) &= (f(0-1),f(1-1),f(2-1),\cdots,f(p-1-1)) \\ &= (f(p-1),f(0),f(1),\cdots,f(p-2)) \end{align*} so indeed ()(\diamondsuit) holds. This proves that P\mathcal{P} is cyclic. :::