\documentclass{article}
\usepackage{graphicx,xcolor}

\pagestyle{empty}


\newcommand{\heap}[2]{
	\newpage

	\vspace{\stretch{1}}
		\begin{center}
			\rotatebox{90}{
					\resizebox{1.5\linewidth}{!}{#1 } \fbox{{\Huge $\displaystyle \frac{ {\textcolor{white}{\rule{3cm}{3cm}}} }{#2}$}}
			}
		\end{center}
	\vspace{\stretch{1}}

}



\begin{document}
\pagestyle{empty}
	\heap{1-50}{50}
	\heap{51-100}{50}
	\heap{101-150}{50}
	\heap{151-200}{50}
	\heap{201-250}{50}
	\heap{251-300}{50}
	\heap{301-350}{50}
	\heap{351-400}{50}
	\heap{401-450}{50}
	\heap{451-500}{50}
	\heap{501-550}{50}
	\heap{601-650}{50}
	\heap{651-700}{50}
	\heap{701-750}{50}
	\heap{751-800}{50}
%% To generate the indices: (using bash)
%%  for i in {10..510..10}; do echo -e "\heap{$(($i - 9))-$i}{10}"; done;
	\heap{1-10}{10}
	\heap{11-20}{10}
	\heap{21-30}{10}
	\heap{31-40}{10}
	\heap{41-50}{10}
	\heap{51-60}{10}
	\heap{61-70}{10}
	\heap{71-80}{10}
	\heap{81-90}{10}
	\heap{91-100}{10}
	\heap{101-110}{10}
	\heap{111-120}{10}
	\heap{121-130}{10}
	\heap{131-140}{10}
	\heap{141-150}{10}
	\heap{151-160}{10}
	\heap{161-170}{10}
	\heap{171-180}{10}
	\heap{181-190}{10}
	\heap{191-200}{10}
	\heap{201-210}{10}
	\heap{211-220}{10}
	\heap{221-230}{10}
	\heap{231-240}{10}
	\heap{241-250}{10}
	\heap{251-260}{10}
	\heap{261-270}{10}
	\heap{271-280}{10}
	\heap{281-290}{10}
	\heap{291-300}{10}
	\heap{301-310}{10}
	\heap{311-320}{10}
	\heap{321-330}{10}
	\heap{331-340}{10}
	\heap{341-350}{10}
	\heap{351-360}{10}
	\heap{361-370}{10}
	\heap{371-380}{10}
	\heap{381-390}{10}
	\heap{391-400}{10}
	\heap{401-410}{10}
	\heap{411-420}{10}
	\heap{421-430}{10}
	\heap{431-440}{10}
	\heap{441-450}{10}
	\heap{451-460}{10}
	\heap{461-470}{10}
	\heap{471-480}{10}
	\heap{481-490}{10}
	\heap{491-500}{10}
	\heap{501-510}{10}
	\heap{511-520}{10}
	\heap{521-530}{10}
	\heap{531-540}{10}
	\heap{541-550}{10}
	\heap{551-560}{10}
	\heap{561-570}{10}
	\heap{571-580}{10}
	\heap{581-590}{10}
	\heap{591-600}{10}
	\heap{601-610}{10}
	\heap{611-620}{10}
	\heap{621-630}{10}
	\heap{631-640}{10}
	\heap{641-650}{10}
	\heap{651-660}{10}
	\heap{661-670}{10}
	\heap{671-680}{10}
	\heap{681-690}{10}
	\heap{691-700}{10}
	\heap{701-710}{10}
	\heap{711-720}{10}
	\heap{721-730}{10}
	\heap{731-740}{10}
	\heap{741-750}{10}
	\heap{751-760}{10}
	\heap{761-770}{10}
	\heap{771-780}{10}
	\heap{781-790}{10}
	\heap{791-800}{10}
	\heap{801-810}{10}
\end{document}

