Cryptography and Network Security Page 126 on this book
\documentclass[usenames,dvipsnames]{beamer}
\usepackage{colortbl}
\usepackage{dcolumn}
\usefonttheme[onlymath]{serif}
\usepackage{amsmath}
\usepackage{array,multirow,booktabs,fourier,polynom}
\usepackage[justification=centering]{caption}
\usetheme{Madrid}
\newcolumntype{2}{D{.}{}{2.0}}
\begin{document}
\begin{frame}
\frametitle{Polynomial Arithmetic over $GF(2)$}
\polylongdiv{x^3+x+1}{x+1}
\end{frame}
\end{document}
Can I make the division shown in the book using \polylongdiv? I know that it can be achieved using array, but \polylongdiv is very simple.



\polylongdivcommand but with coefficients mod 2. Is this right? – Andrew Stacey Aug 06 '18 at 14:16-(minus) sign when subtract to find out the remainder.(x^3+x^2) instead of (-x^3-x^2) – alhelal Aug 06 '18 at 14:22