How the distance between first line and equation and last line and equation is different. How to remove the extra space.

I am using this code
According to given assumption that n is a power of 2 or $n=2^k$
\begin{center}
\begin{equation} \label{eq:solve}
2T(n/2) + 1
\end{equation}
\end{center}
MWE
\documentclass{article}
\usepackage{fancyhdr} % Required for custom headers
\usepackage{lastpage} % Required to determine the last page for the footer
\usepackage{extramarks} % Required for headers and footers
\usepackage[usenames,dvipsnames]{color} % Required for custom colors
\usepackage{graphicx} % Required to insert images
\usepackage{listings} % Required for insertion of code
\usepackage{courier} % Required for the courier font
\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
\usepackage{mathtools} %loads amsmath as well
\DeclarePairedDelimiter\Floor\lfloor\rfloor
\DeclarePairedDelimiter\Ceil\lceil\rceil
% Margins
\topmargin=-0.45in
\evensidemargin=0in
\oddsidemargin=0in
\textwidth=6.5in
\textheight=9.0in
\headsep=0.25in
\linespread{1.1} % Line spacing
\begin{document}
\begin{section}
According to given assumption that n is a power of 2 or $n=2^k$
\section{equation}
2T(n/2) + 1
\end{equation}
Using Master Theorem where a=2, b=2, d=0;
\end{document}

equationenvironment inside acenterenvironment? (Remove thecenterenvironment code and the excess vertical space will disappear.) – Mico Apr 12 '15 at 07:11\begin{equation}. Please study any introductory LaTeX tutorial to learn some of the basics of TeX and LaTeX -- including what not to do, such as (a) encasing anequationenvironment in acenterenvironment, (b) leaving a blank line above a\begin{equation}statement, or (c) using nonexistent instructions such as\begin{section}and\end{section. – Mico Apr 12 '15 at 07:21\section{equation} ...\end{equation}` cannot possibly work. Before posting code revisions, please do check if the revised code even compiles. – Mico Apr 12 '15 at 07:43where a=2, b=2, d=0;should bewhere $a=2$, $b=2$, $d=0$;– David Carlisle Apr 12 '15 at 10:09