My code:
\documentclass[a4paper,12pt]{scrartcl}
\begin{document}
\newcount\tmpc
\def\modul#1#2{\tmpc=#1 \divide\tmpc by #2 \multiply \tmpc by #2 \multiply \tmpc by -1 \advance \tmpc by #1\relax \the\tmpc}
\def\addpages{%
\newcount\tmpb%
\tmpb=\modul{\thepage}{4}%
\multiply\tmpb by -1%
\advance\tmpb by 4%
\loop\ifnum\tmpb>0\advance\tmpb by-1 \vspace*{-5cm}\strut\newpage\repeat%
}
hello
\section[123\hbox to \textwidth{} {\rm\small 456}]{test}
\tableofcontents
\addpages
buggy
\addpages
test
\end{document}
I see "=1 1" on first page. Why?