We consider a Pöschl–Teller potential R tan2 (ξ) (R being a constant), which includes the infinite square well as a limiting case. After suggesting a self-contained derivation of the energy eigenstates, we show that quantum revivals occur if R permits a certain Diophantine equation to be solved.