
\documentclass[12pt]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsfonts}
\usepackage{geometry}
\usepackage{hyperref}

%TCIDATA{OutputFilter=LATEX.DLL}
%TCIDATA{Version=5.00.0.2570}
%TCIDATA{<META NAME="SaveForMode" CONTENT="1">}
%TCIDATA{Created=Tuesday, September 21, 2004 06:51:08}
%TCIDATA{LastRevised=Friday, December 30, 2005 15:48:26}
%TCIDATA{<META NAME="GraphicsSave" CONTENT="32">}
%TCIDATA{<META NAME="DocumentShell" CONTENT="Standard LaTeX\Blank - Standard LaTeX Article">}
%TCIDATA{CSTFile=40 LaTeX article.cst}

\newtheorem{theorem}{Theorem}
\newtheorem{acknowledgement}[theorem]{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\input{tcilatex}
\geometry{left=0.6in,right=0.5in,top=0.4in,bottom=0.5in}

\begin{document}


\begin{center}
\bigskip {\Large Puzzle 3}

\bigskip 
\end{center}

A king has his birthday. So he decides to let go some of his prisoners. He
actually has 100 prisoners at the moment. They are each in a separate cell,
numbered from 1 to 100. Well, he is a high tech king. He can close or open
any prison door by a single click on the cell's number on his royal laptop.
When he clicks at a locked door, it opens. When he clicks at an open door,
it locks. \ At the beginning, every door is locked. 

\bigskip 

First the king clicks on every number from 1 to 100 (therefore opening every
door). 

\bigskip 

Then he clicks on every second number from 1 to 100, (i.e.2, 4, 6, 8, 10, .
. . ). \ 

\bigskip 

Then he clicks on every third number.(i.e. 3, 6, 9, 12, . . .  ) \ Now he is
opening some doors, locking others.

\bigskip 

Then he clicks on every fourth number. (i.e. 4, 8, 12, 16, \ . . . .)

\bigskip 

Then on every fifth....

\bigskip 

And so on, every sixth, every seventh, etc. 

\bigskip 

Until every 100th; finally, he only clicks on the number 100. Then he orders
that the prisoners that find their door open may go free.

\bigskip 

Who gets to go and who has to stay?

\end{document}
