For an integer $n$, denote $A =\sqrt{n^{2}+24}$ and $B =\sqrt{n^{2}-9}$. Find all values of $n$ for which $A-B$ is an integer.
1. Let \( A = \sqrt{n^2 + 24} \) and \( B = \sqrt{n^2 - 9} \). We need to find all integer values of \( n \) for which \( A - B \) is an integer.
2. Let \( m = A - B \). Then, we have:
   \[
   m = \sqrt{n^2 + 24} - \sqrt{n^2 - 9}
   \]
3. Squaring both sides, we get:
   \[
   m^2 = (\sqrt{n^2 + 24} - \sqrt{n^2 - 9})^2
   \]
   \[
   m^2 = (n^2 + 24) + (n^2 - 9) - 2\sqrt{(n^2 + 24)(n^2 - 9)}
   \]
   \[
   m^2 = 2n^2 + 15 - 2\sqrt{(n^2 + 24)(n^2 - 9)}
   \]
4. Rearranging the equation, we get:
   \[
   2\sqrt{(n^2 + 24)(n^2 - 9)} = 2n^2 + 15 - m^2
   \]
   \[
   \sqrt{(n^2 + 24)(n^2 - 9)} = n^2 + \frac{15 - m^2}{2}
   \]
5. Squaring both sides again, we get:
   \[
   (n^2 + 24)(n^2 - 9) = \left(n^2 + \frac{15 - m^2}{2}\right)^2
   \]
6. Expanding both sides, we get:
   \[
   n^4 + 15n^2 - 216 = n^4 + \left(\frac{15 - m^2}{2}\right)^2 + n^2 \cdot (15 - m^2)
   \]
   \[
   15n^2 - 216 = \left(\frac{15 - m^2}{2}\right)^2 + n^2 \cdot (15 - m^2)
   \]
7. Simplifying, we get:
   \[
   15n^2 - 216 = \frac{(15 - m^2)^2}{4} + n^2 \cdot (15 - m^2)
   \]
8. To find integer solutions, we test small values of \( n \):
   - For \( n = 3 \):
     \[
     A = \sqrt{3^2 + 24} = \sqrt{33}, \quad B = \sqrt{3^2 - 9} = 0
     \]
     \[
     A - B = \sqrt{33} - 0 = \sqrt{33} \quad \text{(not an integer)}
     \]
   - For \( n = 4 \):
     \[
     A = \sqrt{4^2 + 24} = \sqrt{40}, \quad B = \sqrt{4^2 - 9} = \sqrt{7}
     \]
     \[
     A - B = \sqrt{40} - \sqrt{7} \quad \text{(not an integer)}
     \]
   - For \( n = 5 \):
     \[
     A = \sqrt{5^2 + 24} = \sqrt{49} = 7, \quad B = \sqrt{5^2 - 9} = \sqrt{16} = 4
     \]
     \[
     A - B = 7 - 4 = 3 \quad \text{(an integer)}
     \]
9. For \( n > 5 \), we need to check if \( m = 1, 2 \) give solutions:
   - For \( m = 1 \):
     \[
     n = \sqrt{\left(\frac{33 - 1^2}{2 \cdot 1}\right)^2 + 9} = \sqrt{\left(\frac{32}{2}\right)^2 + 9} = \sqrt{16^2 + 9} = \sqrt{256 + 9} = \sqrt{265} \quad \text{(not an integer)}
     \]
   - For \( m = 2 \):
     \[
     n = \sqrt{\left(\frac{33 - 2^2}{2 \cdot 2}\right)^2 + 9} = \sqrt{\left(\frac{29}{4}\right)^2 + 9} = \sqrt{7.25^2 + 9} = \sqrt{52.5625 + 9} = \sqrt{61.5625} \quad \text{(not an integer)}
     \]

Therefore, the only solution is \( n = 5 \).

The final answer is \( \boxed{ n = 5 } \)