Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

ashleyCodes

Project: aMeyers
Views: 57
%typeset_mode True
k=IntegerModRing(2)
k(1)+k(1)
0\displaystyle 0
R.<x>=k[]
(x+1)*(x^3+x+1)*(x^3+x^2+1)*(x^4+x^3+x^2+x+1)
x11+x10+x9+x8+x7+x4+x3+x2+x+1\displaystyle x^{11} + x^{10} + x^{9} + x^{8} + x^{7} + x^{4} + x^{3} + x^{2} + x + 1
(x^3+x^2+1)*(x^4+x^3+x^2+x+1)
x7+x4+x3+x+1\displaystyle x^{7} + x^{4} + x^{3} + x + 1
factor(x^8+x^7+1)
(x2+x+1)(x6+x4+x3+x+1)\displaystyle (x^{2} + x + 1) \cdot (x^{6} + x^{4} + x^{3} + x + 1)
G=matrix(k, [[1,1,1,0,0,0,0,0,0,0,0], [0,1,1,1,0,0,0,0,0,0,0], [0,0,1,1,1,0,0,0,0,0,0], [0,0,0,1,1,1,0,0,0,0,0], [0,0,0,0,1,1,1,0,0,0,0], [0,0,0,0,0,1,1,1,0,0,0], [0,0,0,0,0,0,1,1,1,0,0], [0,0,0,0,0,0,0,1,1,1,0], [0,0,0,0,0,0,0,0,1,1,1]]) H=transpose(matrix(k, [[1,0,1,1,0,1,1,0,1,1,0], [1,1,0,1,1,0,1,1,0,1,1]])) G H
(111000000000111000000000111000000000111000000000111000000000111000000000111000000000111000000000111)\displaystyle \left(\begin{array}{rrrrrrrrrrr} 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 \end{array}\right)
(1101101101101101101101)\displaystyle \left(\begin{array}{rr} 1 & 1 \\ 0 & 1 \\ 1 & 0 \\ 1 & 1 \\ 0 & 1 \\ 1 & 0 \\ 1 & 1 \\ 0 & 1 \\ 1 & 0 \\ 1 & 1 \\ 0 & 1 \end{array}\right)
(G*H)
(000000000000000000)\displaystyle \left(\begin{array}{rr} 0 & 0 \\ 0 & 0 \\ 0 & 0 \\ 0 & 0 \\ 0 & 0 \\ 0 & 0 \\ 0 & 0 \\ 0 & 0 \\ 0 & 0 \end{array}\right)
C=LinearCode(G);
C
[11,9] Linear code over Z/2Z\displaystyle [11, 9]\textnormal{ Linear code over }\ZZ/2\ZZ
C.minimum_distance()
2\displaystyle 2
G2=transpose(H) C2=LinearCode(G2) C2
[11,2] Linear code over Z/2Z\displaystyle [11, 2]\textnormal{ Linear code over }\ZZ/2\ZZ
C2.minimum_distance()
7\displaystyle 7
factor(x^11+1)
(x10x9+x8x7+x6x5+x4x3+x2x+1)(x+1)\displaystyle {\left(x^{10} - x^{9} + x^{8} - x^{7} + x^{6} - x^{5} + x^{4} - x^{3} + x^{2} - x + 1\right)} {\left(x + 1\right)}
S = R.quotient(x^31+1, 'a') a = S.gen()
g=(a+1)*(a^5+a^4+a^3+a^2+1)
h = g^31 h
a26+a22+a21+a20+a18+a16+a13+a11+a10+a9+a8+a5+a4+a2+a+1\displaystyle a^{26} + a^{22} + a^{21} + a^{20} + a^{18} + a^{16} + a^{13} + a^{11} + a^{10} + a^{9} + a^{8} + a^{5} + a^{4} + a^{2} + a + 1
w = (x^26+x^22+x^21+x^20+x^18+x^16+x^13+x^11+x^10+x^9+x^8+x^5+x^4+x^2+x+1) w
x26+x22+x21+x20+x18+x16+x13+x11+x10+x9+x8+x5+x4+x2+x+1\displaystyle x^{26} + x^{22} + x^{21} + x^{20} + x^{18} + x^{16} + x^{13} + x^{11} + x^{10} + x^{9} + x^{8} + x^{5} + x^{4} + x^{2} + x + 1
factor(w)
(x+1)3(x2+x+1)2(x5+x4+x3+x2+1)(x7+x4+x3+x2+1)2\displaystyle (x + 1)^{3} \cdot (x^{2} + x + 1)^{2} \cdot (x^{5} + x^{4} + x^{3} + x^{2} + 1) \cdot (x^{7} + x^{4} + x^{3} + x^{2} + 1)^{2}
h^2
a26+a22+a21+a20+a18+a16+a13+a11+a10+a9+a8+a5+a4+a2+a+1\displaystyle a^{26} + a^{22} + a^{21} + a^{20} + a^{18} + a^{16} + a^{13} + a^{11} + a^{10} + a^{9} + a^{8} + a^{5} + a^{4} + a^{2} + a + 1