\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usepackage{amsmath}
\begin{document}
\begin{frame}[fragile]{A frame}
\begin{tikzpicture}[scale=.5]
\matrix [column sep=-\pgflinewidth,
row sep=-\pgflinewidth,
matrix of math nodes, nodes={draw,
text centered, minimum size=3em, text depth=0pt,
text height=1ex},
p/.style={fill=orange!30}] {
& & & & & e & \theta_{N}\\
1 &|[p]| 3 &|[p]| 5 &|[p]| 7 & 9 & 2/5 & 3.1\\
|[p]|11 &|[p]| 13 & 15 &|[p]| 17 &|[p]| 19 & 3/10 & 4.3\\
21 &|[p]| 23 & 25 & 27 &|[p]| 29 & 6/15 & 5.5\\