\documentclass[12pt,reqno]{article}

\usepackage[usenames]{color}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{amscd}

\usepackage[colorlinks=true,
linkcolor=webgreen,
filecolor=webbrown,
citecolor=webgreen]{hyperref}

\definecolor{webgreen}{rgb}{0,.5,0}
\definecolor{webbrown}{rgb}{.6,0,0}

\usepackage{color}
\usepackage{fullpage}
\usepackage{float}

\usepackage{psfig}
\usepackage{graphics,amsmath,amssymb}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{latexsym}
\usepackage{epsf}

\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{.1in}
\setlength{\evensidemargin}{.1in}
\setlength{\topmargin}{-.1in}
\setlength{\textheight}{8.4in}

\newcommand{\seqnum}[1]{\href{http://oeis.org/#1}{\underline{#1}}}

\begin{document}

\begin{center}
\epsfxsize=4in
\leavevmode\epsffile{logo129.eps}
\end{center}

\theoremstyle{plain}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}

\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{conjecture}[theorem]{Conjecture}

\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}

\newcommand{\twolinesum}[2]{\sum_{\substack{{\scriptstyle #1}\\
{\scriptstyle #2}}}}

\newcommand{\gmod}[1]{\, ({\rm{mod}} \, #1)}

\def\cb {\mathcal{B}}
\def\ci {{\cal I}}

\def\bfxi {\boldsymbol{\xi}}
\def\bfeta {\boldsymbol{\eta}}

\begin{center}
\vskip 1cm{\LARGE\bf Partitions with Fixed Number of Sizes}
\vskip 1cm

\large
David Christopher\\
Department of Mathematics\\
The American College\\
Madurai\\
Tamil Nadu\\
India\\
\href{mailto:davchrame@yahoo.co.in}{\tt  davchrame@yahoo.co.in} \\
\end{center}

\vskip .2 in

\begin{abstract}
Let $t(n,s)$ and $t(n,k,s)$, respectively, be the number of partitions
of $n$ with $s$ different sizes, and the number of partitions of $n$
with exactly $k$ parts and $s$ different sizes. In this article, an
asymptotic estimate for $t(n,k,s)$ is presented for the following two
cases: (i) $s=k-1$ and (ii) when $k$ is a prime number with $s=2$.
Further, the enumeration of uniform partitions with exactly 2 sizes is
considered and the estimate for its partial sum is derived.  Finally, a
parity result for $t(n,2)$ is obtained.
\end{abstract}

\section{Introduction and statement of results}
 Let $n$ be a positive integer. By a partition of $n$ we mean a finite non-increasing sequence of positive integers $\lambda=(\lambda_1, \lambda_2,\ldots, \lambda_m)$ such that $\lambda_1+\lambda_2+\cdots+\lambda_m=n$. The $\lambda_i$ are called the parts of the partition and each element in the set of parts is called a size of $\lambda$.

Let $t(n,s)$ and $t(n,k,s)$, respectively, be the number of partitions of $n$ with $s$ different sizes, and the number of partitions of $n$ with exactly $k$ parts and $s$ different sizes.

These two classes of functions are subjects of  investigation in the recent past. MacMahon \cite{mac} was the first who considered this kind of partitions. In 2005, Deutsch included the number of partitions of $n$ with exactly two odd sizes  (see \seqnum{A117955}) and the number of partitions of $n$ with exactly two sizes, one odd and one even (see \seqnum{A117956}) in the 
{\it On-Line Encyclopedia of Integer Sequences} (OEIS).
Sloane \cite{S1} included the function $t(n,2)$ in the OEIS (see \seqnum{A002133}). Deutsch presented the following generating function of $t(n,2)$  (see \seqnum{A002133}):
$$
\sum_{n=1}^{\infty}t(n,2)x^n=\sum_{j=1}^{i-1}\sum_{i=1}^{\infty}\frac{x^{i+j}}{(1-x^i)(1-x^j)}.
$$
Andrews \cite{GE} gave the following formula for $t(n,2)$ by means of $q$ series manipulations: 
$$
t(n,2)=\frac{\sum_{k=1}^{n-1}\tau(k)\tau(n-k)+\tau(n)-\sigma(n)}{2},
$$
where $\tau(n)$ denote the number of positive divisors of $n$ and $\sigma(n)$ denote the sum of the positive divisors of $n$. 

 In 2011, Tani and Bouroubi \cite{tan} found an elegant exact formula for the function $t(n,k,2)$. 

The purpose of this article is twofold. First, we give an asymptotic 
estimate for $t(n,k,s)$ for certain cases.
\begin{theorem}\label{thm1}
We have
\begin{equation}\label{est1}
t(n,k+1,k)\sim \frac{C_{k-1}}{(k+1)!^{k-1}}n^{k-1},
\end{equation}
where $C_{k-1}$ is given by the recurrence relation:
\begin{equation}\label{rec2}
C_{k-1}=(k-2)!kC_{k-2}(k+1)^{k-2}+k\frac{(k+1)!^{k-2}}{(k-1)!}
\end{equation}
with $C_1=3$. 
\end{theorem}
\begin{theorem}\label{thm2}
For prime $p\geq 3$, we have
$$
t(n,p,2)\sim \frac{\sum_{j=1}^{p-1}\frac{(p-1)!}{j}}{p!}n.
$$
\end{theorem}
The method adopted to arrive at the above estimates is similar to the one used in a recent paper by David Christopher et al. \cite{dav2}.
In addition to the estimates above, we consider the uniform partitions with 2 sizes and we derive the estimate for the partial sums of its enumeration function. 
\begin{definition}
A partition $\lambda$ is said to be an {\it uniform partition} (see \cite{dav}) if, the number of occurrences of a size in $\lambda$ is identical with that of all the other sizes in $\lambda$. The enumeration function $U(n,2)$ is defined to be the number of uniform partitions of $n$ with exactly 2 sizes. 
\end{definition}
\begin{theorem}\label{thm3}
We have
$$
\sum_{m=1}^{n}U(m,2)\sim \frac{\pi^2}{24}n^2.
$$
\end{theorem}
The next result in this article is a parity expression for $t(n,2)$. 
\begin{theorem}\label{thm4}
Let $n$ be a positive integer. 
\begin{enumerate}
\item 
If $n \equiv 1\pmod 2$, then we have
$$
t(n,2)\equiv 
\begin{cases}
\frac{\tau(n)-1}{2}\pmod 2, & \text{ if $n$ is a square;}\\ 
\frac{\tau(n)}{2}\pmod 2, & \text{if $n$  is not a square.}
\end{cases}
$$
\item If $n\equiv 0\pmod 2$ and $\beta$ is the highest power of 2 that divides $n$, then we have
$$
t(n,2)\equiv\begin{cases}
\frac{(\beta-1)\tau(\frac{n}{2^\beta})-1}{2}\pmod 2, & \text{ if $n$ is a 
square;}\\ 
\frac{(\beta-1)\tau(\frac{n}{2^\beta})}{2}\pmod 2, & \text{ if $n$ is not a 
square.}
\end{cases}
$$
\end{enumerate}
\end{theorem}
In the final section, we provide two different proofs for this theorem.
\section{Proof of the Estimates}
\subsection{Prerequisites}
To begin with, we need the following recurrence relation satisfied by $t(n,k,s)$, which  has $k-s+2$ preceding terms. Note that, the following recurrence relation is identical to the one given by Tani and Bouroubi \cite{tan}, but it is presented here in a linear form. The method of proof below is  bijective whereas the former proof is based upon a simple variation in the system of equations that admits partitions with fixed number of sizes as its solution. 
\begin{lemma} [Tani and Bouroubi  \cite{tan}] \label{lem1}
We have 
$$
t(n,k,s)=t(n-k,k,s)+\sum_{r=1}^{k-s+1}t(n-k,k-r,s-1).
$$
\end{lemma}
\begin{proof}
Let $(\lambda_1,\lambda_2,\ldots,\lambda_k)$ be a partition of $n$ with exactly $k$ parts and $s$ different sizes.

\bigskip

\noindent Case (i): Assume that $\lambda_k>1$. Consider the mapping
$$
(\lambda_1,\lambda_2,\ldots,\lambda_k)\to (\lambda_1-1,\lambda_2-1,\ldots ,\lambda_k-1);
$$
this mapping establishes an one-to-one correspondence between the following sets:
\begin{itemize}
\item The set of all partitions of $n$ with exactly $k$ parts, $s$ different sizes and least part $a_k>1$. 
\item The set of all partitions of $n-k$ with exactly $k$ parts and $s$ different sizes.
\end{itemize}
We observe that  the cardinality of the latter set is $t(n-k,k,s)$.

\bigskip

\noindent Case (ii): Assume that $\lambda_k=\lambda_{k-1}=\cdots =\lambda_{k-(r-1)}=1$ and $\lambda_{k-r}>1$ for some positive integer $r\geq 1$.

We see that the mapping
$$
(\lambda_1,\lambda_2,\ldots ,\lambda_k)\to (\lambda_1-1,\lambda_2-1,\ldots ,\lambda_{k-r}-1)
$$
establishes  an one-to-one correspondence between the following sets:
\begin{itemize}
\item The set of all partitions of $n$ with exactly $k$ parts, $s$ different sizes and $\lambda_{k}=\lambda_{k-1}=\cdots =\lambda_{k-(r-1)}=1$ and $\lambda_{k-r}>1$.
\item The set of all partitions of $n-k$ with exactly $k-r$ parts and $s-1$ different sizes. 
\end{itemize}
Notice that the cardinality of the latter set is $t(n-k,k-r,s-1)$. Since $r$ varies from $1$ to $k-s+1$, the result follows.
\end{proof}
\begin{definition}
Let $n$ and $k$ be two positive integers with $n\geq\frac{k(k+1)}{2}$ . The enumeration function $q(n,k)$ is defined to be the number of partitions of $n$ with $k$ distinct parts.
\end{definition}
The following result is required in the proof of Theorem \ref{thm1}.
\begin{lemma}[David Christopher and Davamani Christober \cite{dav1}]\label{lem2} Let $k\geq 2$ be a positive integer. For each $ r\in\left\{0,1,\ldots,k!-1\right\}$, the function $q(k!l+r,k)$ is a polynomial in $l$ of degree $k-1$ with the leading coefficient $\frac{k!^{k-2}}{(k-1)!}$.
\end{lemma}
\subsection{Proof of Theorem \ref{thm1}}
Wielding Lemma \ref{lem1} and Lemma \ref{lem2} we will prove the following statements:
\begin{enumerate} 
\item The function $t((k+1)!l+r,k+1,k)$ is a polynomial in $l$ of degree $k-1$ for each $r\in\left\{0,1,\ldots,(k+1)!-1\right\}$.
\item The leading coefficient of $t((k+1)!l+r,k+1,k)$, denoted $C_{k-1}$,  satisfies the recurrence relation (\ref{rec2}).
\end{enumerate}
 From these statements one can get the following limit:
$$
\lim_{l\to \infty}\frac{t((k+1)!l+r,k+1,k)}{\left((k+1)!l+r\right)^{k-1}}=\frac{C_{k-1}}{(k+1)!^{k-1}}
$$
for each $r\in\left\{0,1,\ldots,(k+1)!-1\right\}$; which is equivalent to the estimate (\ref{est1}). 

Now we prove the statements above simultaneously by induction over $k$. 
We observe that: $t(n,k,k)=q(n,k)$. 
Put $k=3$ and $s=2$ in Lemma \ref{lem1} to get
\begin{align*}
t(n,3,2)-t(n-3,3,2) & =t(n-3,2,1)+q(n-3,1)\\
& = \begin{cases}
2, & \text{ if $n\equiv 3\pmod 2$;}\\
1, & \text{otherwise}.
\end{cases}
\end{align*}
Put $n=3!l+r$ with $0\leq r\leq 3!-1$, where $l$ is a non-negative integer. Then we have
\[t(3!l+r,3,2)-t(3!l+r-3,3,2)=
\begin{cases}
2,  & \text{if $r\equiv1\pmod 2$;}\\
1, &\text{if $r\equiv 0\pmod 2$,}
\end{cases}
\]
and 
\[t(3!l+r-3,3,2)-t(3!l+r-6,3,2)=
\begin{cases}
2, & \text{if  $r\equiv 0\pmod 2$;}\\
1, & \text{if  $r\equiv1\pmod 2$.}
\end{cases}
\]
The sum of the above two expressions can be put as
$t(3!l+r,3,2)-t(3!(l-1)+r,3,2)=3
$
for each $ r\in\left\{0,1,\ldots, 3!-1\right\}$. Then substituting $2,3,\ldots ,l$ in place of $l$ gives
$t(3!l+r,3,2)=3(l-1)+t(r,3,2)
$
for each $ r\in\left\{0,1,\ldots, 3!-1\right\}$. Thus, the statements above
hold for $k=2$. 

Assume that the assertion is true up to some $k\geq 2$. Set $k+1$ as the number of parts, $k$ as the number of sizes and $n=(k+1)!l+r$, where $l$ is a non-negative integer and $r\in\left\{0,1,\ldots,(k+1)!-1\right\}$. Then applying Lemma \ref{lem1} $k!$ times, we get
\begin{align*}
t((k+1)!l+r,k+1,k)&-t((k+1)!(l-1)+r,k+1,k)& \\ 
&=\sum_{i=1}^{k!}t((k+1)!l+r-i(k+1),k,k-1)\\ &+\sum_{i=1}^{k!}q((k+1)!l+r-i(k+1),k-1).
\end{align*}
In view of the division algorithm one can obtain unique pair of integers say $(r_i,q_i)$  for each $i\in\left\{1,2,\ldots,k!\right\}$ satisfying the equality $k!q_i+r_i=r-i(k+1)$ with $0\leq r_i\leq k!-1$. Similarly one can get unique pair of integers say $(r_i',q_i')$ for each $i\in\left\{1,2,\ldots,k!\right\}$ satisfying the equality $(k-1)!q_i'+r_i'=r-i(k+1)$ with $0\leq r_i'\leq (k-1)!-1$. Consequently, the right side of the above equality can be written as
\begin{equation}\label{thmeqn1}
\sum_{i=1}^{k!}t(k!((k+1)l+q_i)+r_i,k,k-1)+\sum_{i=`1}^{k!}q\left((k-1)!\left(\frac{(k+1)!}{(k-1)!}l+q_i'\right)+r_i',k-1\right).
\end{equation}
Put $l_i=(k+1)l+q_i$. By induction assumption, the function $t(k!l_i+r_i,k,k-1)$ is a polynomial in $l_i$ of degree $k-2$ with the leading coefficient $C_{k-2}$ as given in the recurrence relation (\ref{rec2}) for each $r_i\in\left\{0,1,\ldots ,k!-1\right\}$ and $i\in\left\{1,2,\ldots,k!\right\}$. Just assuming this polynomial representation, we see that the first summation in (\ref{thmeqn1}) is a sum of $k!$ polynomials in $l$, each of which is of degree $k-2$ with the leading coefficient $C_{k-2}(k+1)^{k-2}$. (At this juncture, we note that $(k+1)l+q_i$ may be negative for some initial values of $l$. In such instances, we assume the extrapolation of the function $t(k!l_i+r_i,k,k-1)$ as a polynomial in $l_i$ and not as an enumeration function.) Thus, the first summation in (\ref{thmeqn1}) is itself a polynomial in $l$ of degree $k-2$ with the leading coefficient $k!C_{k-2}(k+1)^{k-2}$. Put $l_i'=\frac{(k+1)!}{(k-1)!}l+q_i'$. From Lemma \ref{lem2} it follows that  $q((k-1)!l'_i+r_i',k-1)$ is a polynomial in $l'_i$ of degree $k-2$ for each $r_i'\in\left\{0,1,\ldots,(k-1)!-1\right\}$ and $i\in\left\{1,2,\ldots,k!\right\}$. Consequently, the second summation in (\ref{thmeqn1}) is itself  a polynomial in $l$ of degree $k-2$ with the leading coefficient 
$k!\frac{(k-1)!^{k-3}}{(k-2)!}\frac{(k+1)!^{k-2}}{(k-1)!^{k-2}}$.
Thus, the summation term in (\ref{thmeqn1}) is a polynomial in $l$ of degree $k-2$ with the leading coefficient
$k!C_{k-2}(k+1)^{k-2}+k!\frac{(k-1)!^{k-3}}{(k-2)!}\frac{(k+1)!^{k-2}}{(k-1)!^{k-2}}$. Accordingly, $t((k+1)!l+r,k+1,k)-t((k+1)!(l-1)+r,k+1,k)$ is a polynomial in $l$ of degree $k-2$.  Put $f(l)=t((k+1)!l+r,k+1,k)-t((k+1)!(l-1)+r,k+1,k)$. Substituting the values $1,2,\ldots,l$ in place of $l$ and adding we get $t((k+1)!l+r,k+1,k)=\sum_{i=1}^{l}f(i)-t(r,k+1,k)$. This equality implies that $t((k+1)!l+r,k+1,k)$ is a polynomial in $l$ of degree $k-1$.

If one denotes the leading coefficient of $t((k+1)!l+r,k+1,k)$ by $C_{k-1}$, then from the conclusions above we get
$$
(k-1)C_{k-1}=k!C_{k-2}(k+1)^{k-2}+k!\frac{(k-1)!^{k-3}}{(k-2)!}\frac{(k+1)!^{k-2}}{(k-1)!^{k-2}}.
$$
This simplifies to the recurrence relation (\ref{rec2}).
The proof is now completed. 
\begin{corollary}
From the recurrence relation of $C_n$ given in the Theorem \ref{thm1} we get
$$
C_1=3, C_2=72, C_3=24000, C_4=233280000,\ldots
$$
From these values of $C_i$, we have the following estimates:
\begin{align*}
&t(n,3,2)\sim\frac{1}{2}n;\\ 
&t(n,4,3)\sim \frac{1}{8}n^2;\\
&t(n,5,4)\sim \frac{1}{72}n^3;\\
&t(n,6,5)\sim \frac{1}{1152}n^4 .
\end{align*}
\end{corollary}
\subsection{Proof of Theorem \ref{thm2}}
Let $p$ be a prime number. Then from Lemma \ref{lem1} it follows that
$$
t(n,p,2)-t(n-p,p,2)=\sum_{j=1}^{p-1}t(n-p,j,1).
$$
Put $n=p!l+r$ (where $l$ is a positive integer and $0\leq r\leq p!-1$) and apply Lemma \ref{lem1}  $(p-1)!$ times in the above relation  to get
\begin{equation}\label{thmeqn2}
t(p!l+r,p,2)-t(p!(l-1)+r,p,2)=\sum_{j=1}^{p-1}\sum_{i=1}^{(p-1)!}t(p!l+r-pi,j,1).
\end{equation}
Notice that
$$
t(p!l+r-pi,j,1)=\begin{cases}
1, & \text{if $pi\equiv r\pmod j$;}\\
0, & \text{otherwise,}
\end{cases}
$$
and the congruence equation
$$\text{ $px\equiv r\pmod j$}
$$
has unique solution modulo $j$ for each $j\in\left\{1,2,\ldots,p-1\right\}$. Consequently, we get the right side of (\ref{thmeqn2}) as $\sum_{j=1}^{p-1}\frac{(p-1)!}{j}$. Then replacing $l$ by $1,2,\ldots ,l$  in (\ref{thmeqn2}) and adding gives
$$
t(p!l+r,p,2)=t(r,p,2)+\left(\sum_{j=1}^{p-1}\frac{(p-1)!}{j}\right)l
$$
for each $r\in\left\{0,1,\ldots, p!-1\right\}$.
This implies that
$$
\lim _{l\to\infty}\frac{t(p!l+r,p,2)}{p!l+r}=\frac{\sum_{j=1}^{p-1}\frac{(p-1)!}{j}}{p!}
$$
for  each $r\in\left\{0,1,\ldots, p!-1\right\}$. 
Equivalently, 
$$
t(n,p,2)\sim \frac{\sum_{j=1}^{p-1}\frac{(p-1)!}{j}}{p!}n;
$$
this is the contention of the Theorem \ref{thm2}.
\begin{remark}
At this juncture, we remark that, the method adopted so far to derive asymptotic estimates may turn futile for some other cases. For instance, from the exact 
expression for the function $t(n,4,2)$ given in \cite{tan} one can get the following values: 
\begin{enumerate}
\item $t(12l+4,4,2)=7l$ for every non-negative integer $l$.
\item $t(12l+5,4,2)=4l+1$ for every non-negative integer $l$.
\end{enumerate}
This leads to the conclusion that 
$$
t(n,4,2)\nsim Kn
$$
for every real number $K$. 
\end{remark}
\subsection{Proof of Theorem \ref{thm3}}
Recall that the function $U(n,2)$ is the number of uniform partitions of $n$ with exactly 2 sizes. We have
\begin{align*}
U(n,2)&=\sum_{d|n}q\left(d,2\right)\\ 
&=\sum_{d|n} \left\lfloor\frac{d-1}{2}\right\rfloor\\ 
&  \leq\sum_{d|n}\frac{d-1}{2}\\ 
&=\frac{1}{2}\left(\sigma(n)-\tau(n)\right).
\end{align*}
On the other hand, we have
\begin{align*}
U(n,2)&=\sum_{d|n}q\left(d,2\right)\\
&=\sum_{d|n} \left\lfloor\frac{d-1}{2}\right\rfloor\\
& \geq\sum_{d|n}\frac{d-2}{2}\\
&=\frac{1}{2}\left(\sigma(n)-2\tau(n)\right).
\end{align*}
Consequently, we have
\begin{equation}\label{peqn2}
\frac{1}{2}\left(\sum_{m=1}^{n}\sigma(m)-2\sum_{m=1}^{n}\tau(m)\right) \leq \sum_{m=1}^{n}U(m,2)\leq \frac{1}{2}\left( \sum_{m=1}^{n}\sigma(m)- \sum_{m=1}^{n}\tau(m)\right).
\end{equation}
Since
\begin{equation}\label{lim1}
\lim_{n\to\infty}\frac{\sum_{m=1}^{n}\sigma(m)}{\frac{\pi^2}{12}n^2}=1
\end{equation}
and 
\begin{equation}\label{lim2}
\lim_{n\to\infty}\frac{\sum_{m=1}^{n}\tau(m)}{n\log{n}}=1,
\end{equation}
dividing the inequality (\ref{peqn2}) by $\frac{\pi^2}{12}n^2$ and letting $n\to \infty$ gives 
$$
\lim_{n\to\infty}\frac{\sum_{m=1}^{n}U(m,2)}{\frac{\pi^2}{12}n^2}=\frac{1}{2},
$$
which is equivalent to the estimate given in Theorem \ref{thm3}. (The validity of the limits (\ref{lim1}) and (\ref{lim2}) can be seen in \cite[p.\ 57--60]{TA}.)
\section{Two proofs of Theorem 5}
In this section, we adopt the following notation: if $\lambda=(\lambda_1,\lambda_2,\ldots,\lambda_k)$ is a partition of $n$ and $\left\{a_1,a_2,\ldots\right\}$ is the set of all sizes of $\lambda$ with $a_1>a_2>\cdots$, then we denote $\lambda=\left(a_1^{f_1}a_2^{f_2}\cdots\right)$ when the size $a_i$ occurs exactly $f_i$ number of times in $\lambda$. Let $P_2^n$ denote the set of all partitions of $n$ with exactly two sizes.

\subsection{A proof using Jacobi's formula}
\begin{proof}
Let  $\lambda=\left(a_1^{f_1}a_2^{f_2}\right)\in P_2^n$. Then we have $a_1f_1+a_2f_2=n$ with $a_1>a_2$.  

\bigskip

\noindent Case (i):  $f_1=f_2$. In this case we have
$n=f_1a_1+f_2a_2=f(a_1+a_2)$,
where $f_1=f_2=f$ (say). Clearly, $f|n$ and the enumeration of the ordered pairs $(a_1,a_2)$ satisfying the equality is  $q\left(\frac{n}{f},2\right)$. Thus, the number of partitions belonging to this case is $\sum_{f|n}q\left(\frac{n}{f},2\right)$.

\bigskip

\noindent Case (ii):  $f_1=a_1$ and $f_2=a_2$. We see that the number of partitions belonging to this case equals the number of ways that $n$ can be written as the sum of two distinct nonzero squares; we denote this enumeration by $R_2(n)$. 

\bigskip

\noindent Case (iii): Assume that $f_1\neq f_2$ with either $a_1\neq f_1$ or $a_2\neq f_2$, and either $f_1\neq a_2$ or $f_2\neq a_1$. In this case, consider the mapping 
$$
T((a_1^{f_1}a_2^{f_2}))=
\begin{cases} (f_1^{a_1}f_2^{a_2}), & \text{  if $ f_2<f_1$;} \\ 
(f_2^{a_2}f_1^{a_1}), & \text{ if $f_1<f_2$.}
\end{cases}
$$
Clearly, $T$ is an involutory mapping with no fixed point. Moreover, we see that if $\lambda$ belongs to this case, then $T(\lambda)$  also belongs to this case and vice versa. Thus, the set of partitions belonging to this case can be got as the disjoint union of set of pairs of elements of the form $\left\{\lambda,T(\lambda)\right\}$, where $\lambda$ runs over the partitions belonging to this case. Consequently, the number of partitions belonging to this case is even; thus, this enumeration contributes zero to the modulo 2. 

\bigskip

\noindent Case (iv): $f_1\neq f_2$ with $a_1=f_2$ and $a_2=f_1$. We note that this is a special case when $n\equiv$ 0 (mod $2$). In this case, we have $n=2a_1a_2$. Consequently, the number of partitions belonging to this case is $\frac{\tau(\frac{n}{2})-\delta(\frac{n}{2})}{2}$, where $\delta(\cdot)$ is the characteristic function of squares defined as follows:
$$
\delta(n)=
\begin{cases}
1, &\text{if $n$ is a square;}\\
0, &\text{otherwise.}
\end{cases}
$$
Since the above cases are exhaustive, we have the following 
parity identity for $t(n,2)$:
\begin{equation}\label{p2}
t(n,2)\equiv\begin{cases}
 \left(\sum_{d|n}q\left(\frac{n}{d},2\right)+R_2(n)+\frac{\tau(\frac{n}{2})-\delta(\frac{n}{2})}{2}\right)\pmod  2, & \text{ if $n\equiv 0\pmod 2$};\\
 \left(\sum_{d|n}q\left(\frac{n}{d},2\right)+R_2(n)\right)\pmod 2,& \text{ if $n\equiv 1\pmod 2$.}
\end{cases}
\end{equation}
The remaining part of the proof relies on a formula due to Jacobi. Jacobi \cite{jac} found a formula for the number of representations of a given positive integer $n$  as the sum of two squares. This representation includes negative numbers and zero in the squaring process and also the order of the summands is taken into account. Jacobi's formula \cite{jac} is
$$
r_2(n)=4\left(d_1(n)-d_3(n)\right),
$$
where $r_2(n)$ denotes the number of ways that a given positive integer $n$ can be written as the sum of two squares and $d_1(n) (\text{resp.}  d_3(n)) $ denotes the number of divisors of $n$ that are $1 (\text{resp. }3)$ modulo $4$. Using this formula, we can write
\begin{align*}
R_2(n)&= \begin{cases}
\frac{r_2(n)-4}{8}, &\text{ if $\delta(n)=1$ or $\delta(\frac{n}{2})=1$;}\\
\frac{r_2(n)}{8}, & \text{otherwise.}
\end{cases}\\ 
& =\begin{cases}
 \frac{d_1(n)-d_3(n)-1}{2},& \text{ if $\delta(n)=1$ or $\delta(\frac{n}{2})=1$;}\\
\frac{d_1(n)-d_3(n)}{2}, & \text{otherwise.}
\end{cases}
\end{align*}
We now simplify the parity formula of $t(n,2)$ mentioned in (\ref{p2})
by using the above expression for $R_2(n)$.

To proceed further, we need a few calculations. If $n\equiv$1 (mod $2$), then for every divisor $d$ of $n$, we have 
$$
\lfloor\frac{d-1}{2}\rfloor\equiv 
 \begin{cases}
 0 \pmod 2, & \text{if  $d\equiv 1\pmod 4$;}\\
 1 \pmod 2, & \text{if $d\equiv 3\pmod 4$,}
\end{cases}
$$
and hence it follows that
$$
\sum_{d|n}q(d,2)=\sum_{d|n}\left\lfloor\frac{d-1}{2}\right\rfloor
 \equiv d_3(n)\pmod 2.$$
If $n\equiv$0 (mod 2), then we have
$$
\sum_{d|n}q(d,2)=\sum_{d|n,\ d\equiv 1\pmod 2}q(d,2)+\sum_{d|n,\ d\equiv 0\pmod 2}q(d,2).
$$
By the previous calculation, we see that
$$
\sum_{d|n,\ d\equiv 1\pmod 2}q(d,2)\equiv  d_3(n)\pmod 2.
$$
Let $\beta$ be the highest power of $2$ that divides $n$.
Since $\lfloor\frac{2n-1}{2}\rfloor=n-1$, we have $\lfloor\frac{2^kn-1}{2}\rfloor=2^{k-1}n-1\equiv 1\pmod 2$ for every $k\geq 2$. And consequently we get
$$
\sum_{d|n,\ d\equiv 0\pmod 2}q(d,2)\equiv (\beta -1)\tau\left(\frac{n}{2^\beta}\right)\pmod 2.
$$
 Accordingly, when $n\equiv$ 0 (mod $2$) and $\beta$ is the highest power of 2 that divides $n$, we have
$$
\sum_{d|n}q(d,2)\equiv  d_3(n)+(\beta -1)\tau\left(\frac{n}{2^\beta}\right)\pmod 2.
$$
When these calculations are  incorporated in the parity identity (\ref{p2}) we get
\begin{align*}
t(n,2)&\equiv 
\begin{cases}
d_3(n)+\frac{d_1(n)-d_3(n)-1}{2}\pmod 2,  & \text{if $n\equiv1 \pmod 2$}\\ & \text{and $\delta(n)=1$;} \\
d_3(n)+\frac{d_1(n)-d_3(n)}{2}\pmod 2, &\text{if $n\equiv1\pmod 2$}\\ & \text{and $\delta(n)=0$;}\\
d_3(n)+\frac{d_1(n)-d_3(n)-1}{2}+(\beta -1)\tau\left(\frac{n}{2^\beta}\right)+\frac{\tau(\frac{n}{2})-\delta(\frac{n}{2})}{2}\pmod 2,
&\text{if $n\equiv 0\pmod 2$}\\ &\text{and $\delta(n)=1$ or}\\ &\text{$\delta(\frac{n}{2})=1$};\\
d_3(n)+\frac{d_1(n)-d_3(n)}{2}+(\beta -1)\tau\left(\frac{n}{2^\beta}\right)+\frac{\tau(\frac{n}{2})-\delta(\frac{n}{2})}{2}\pmod 2, & \text{if  $n\equiv 0\pmod 2$}\\ &\text{and $\delta(n)=0$.}
\end{cases}
\end{align*}
Let $n\equiv 0 \pmod 2$. If $\delta(\frac{n}{2^\beta})=1$  then either $\delta(n)=1$ or $\delta(\frac{n}{2})=1$. Conversely, if $\delta(\frac{n}{2^\beta})=0$, then $\delta(n)=\delta(\frac{n}{2})=0$. This simple observation transforms the above congruence as follows:
\begin{align*}
t(n,2)&\equiv \begin{cases}
\frac{\tau(n)-1}{2}\pmod 2, & \text{if $n\equiv 1\pmod 2$ and}\\ &\text{$\delta(n)=1$;} \\
\frac{\tau(n)}{2}\pmod 2, &\text{if $n\equiv 1\pmod 2$ and}\\ &\text{$\delta(n)=0$;}\\
(\beta-1)\tau(\frac{n}{2^\beta})+\frac{\tau(\frac{n}{2^\beta})-1}{2}+\frac{\tau(\frac{n}{2})-\delta(\frac{n}{2})}{2}\pmod 2 &\text{if $n\equiv 0\pmod 2$ and} \\ &\text{$\delta(\frac{n}{2^\beta})=1$;}\\
(\beta-1)\tau(\frac{n}{2^\beta})+\frac{\tau(\frac{n}{2^\beta})}{2}+\frac{\tau(\frac{n}{2})}{2}\pmod 2 & \text {if $n\equiv 0\pmod 2$ and}\\ &\text{$\delta(\frac{n}{2^\beta})=0$.}
\end{cases}
\end{align*}
As we see, the proof for the case $n\equiv$1 (mod $2$) is finished. To finish the proof of the counterpart, we verify that the last two cases in the above congruence is equivalent to the congruence mentioned in the statement of the result. To that end, the following easily verifiable fact is required:  using the multiplicative property of $\tau$ function, one can get that $\tau(\frac{n}{2^\beta})+\tau(\frac{n}{2})=\tau(\frac{n}{2^\beta})+\tau(\frac{n}{2^\beta})\beta=\tau(\frac{n}{2^\beta})(\beta+1)$ when $n\equiv 0\pmod 2$.
\begin{enumerate}
\item  Let $n\equiv 0\pmod 2$. If $\delta(n)=0$ and $\delta(\frac{n}{2^\beta})=1$, then we have $\tau(\frac{n}{2^\beta})\equiv$  1 (mod $2$) and $\beta -1\equiv$0 (mod $2$). This gives
\begin{align*}
t(n,2)& \equiv\frac{\tau(\frac{n}{2^\beta})-1}{2}+\frac{\tau(\frac{n}{2})-1}{2}\\ 
&\equiv \frac{\tau(\frac{n}{2^\beta})(\beta+1)}{2}-1\\ 
&\equiv \frac {\beta+1}{2}-1\\
&\equiv\frac{\beta-1}{2}\\
& \equiv \frac{\tau(\frac{n}{2^\beta})(\beta-1)}{2}\pmod 2.
\end{align*}
\item Let $n\equiv 0\pmod 2$. If $\delta(n)=\delta(\frac{n}{2^\beta})=0$, then we have
\begin{align*}
t(n,2)&\equiv \frac{\tau(\frac{n}{2^\beta})}{2}+\frac{\tau(\frac{n}{2})}{2} \equiv \frac{(\beta+1)\tau(\frac{n}{2^\beta})}{2} \equiv \frac{(\beta-1)\tau(\frac{n}{2^\beta})}{2}\pmod 2.
\end{align*}
Equivalence of the last two congruences follows from the fact that the parity of $\beta+1$ and $\beta-1$ are identical. 
\item Let $n\equiv 0\pmod 2$. If $\delta(n)=1$, then
\begin{equation}\label{conf}
t(n,2)\equiv (\beta-1)\tau(\frac{n}{2^\beta})+\frac{\tau(\frac{n}{2^\beta})-1}{2}+\frac{\tau(\frac{n}{2})}{2}\equiv1+\frac{\tau(\frac{n}{2^\beta})(\beta+1)-1}{2}\pmod 2.\\ 
\end{equation}
Since $\tau(\frac{n}{2^{\beta}})\equiv$ 1 (mod $2$), we have $\frac{\tau(\frac{n}{2^{\beta}})(\beta+1)-1}{2}+1\equiv \frac{\beta+2}{2}$ (mod $2$); on the other hand, we have $\frac{(\beta-1)\tau(\frac{n}{2^\beta})-1}{2}\equiv \frac{\beta-2}{2}\equiv \frac{\beta-2}{2}+2\equiv \frac{\beta+2}{2}$ (mod $2$). Thus, the congruence (\ref{conf}) is equivalent to the congruence: $t(n,2)\equiv \frac{(\beta-1)\tau(\frac{n}{2^\beta})-1}{2}$ (mod $2$) as expected. 
\end{enumerate}
The proof is now completed. 
\end{proof}
\subsection{A proof using conjugate mapping}
\begin{definition}Let $\lambda=(a_1^{f_1}a_2^{f_2})\in P_2^n$. The conjugate of $\lambda$, denoted $C(\lambda)$, is the partition $((f_1+f_2)^{a_2}f_1^{a_1-a_2})$.
\end{definition}
\begin{proof}
 Define the conjugate mapping $C: P^n_2\to \mathcal P_2^n$. Since $C$ is an involutory self mapping, arguments similar to that of in the previous proof gives the congruence $t(n,2)\equiv SC_2(n)$ (mod $2$) ,
where $SC_2(n)$ denotes the number of self conjugate partitions in $P_2^n$. 

Now we derive a formula for $SC_2(n)$ in terms of the $\tau$ function. 
Define 
$$
D_n=\left\{d\in \mathbb N: d|n, d<\sqrt{n}\text{ and }\frac{n}{d}-d\equiv 0\pmod 2\right\}.
$$
 We contend that $SC_2(n)=|D_n|$. Let $\lambda=(a_1^{f_1}a_2^{f_2})\in P_2^n$ be a self conjugate partition. Then from the definition of self conjugate partition, we have $a_1=f_1+f_2$ and $a_2=f_1$. Consequently, we can write $n=f_1^2+2f_1f_2$. This leads to the equality $\frac{n}{f_1}-f_1=2f_2$. Thus, $f_1$ is a divisor of $n$ which is less than $\sqrt{n}$ and $\frac{n}{f_1}-f_1\equiv$ 0 (mod $2$). On the other hand, let $d\in D_n$. Since $d<\sqrt{n}$ , we can write $\frac{n}{d}-d=2k$ for some $k\geq 1$. From this we can construct the partition $((d+k)^dd^k)$ which is a self conjugate partition of $n$ with two sizes. Accordingly, corresponding to each self conjugate partition in $P_2^n$, we can find an element in $D_n$; and to each element in $D_n$ we can find a self conjugate partition in $P_2^n$. Thus, the claim follows. Now we find an expression for $|D_n|$. 

\bigskip

\noindent Case (i): Assume that $n\equiv$ 1 (mod $2$). Then apparently $\frac{n}{d}-d\equiv$ 0 (mod $2$) for every $d|n$. Thus, in this case, $D_n$ is the set of divisors of $n$ that are less than $\sqrt{n}$. Let $D_n'$ be the set of divisors of $n$ that are greater than $\sqrt{n}$. Define the mapping $\phi:D_n\to D_n'$  by $\phi(d)=\frac{n}{d}$ for every $d\in D_n$. Clearly, $\phi$ is a non-fixed bijection and $D_n\cap D_n'=\emptyset$. Thus, 
\[|D_n|=\begin{cases}
\frac{\tau(n)}{2}, & \text{ if $n$ is a non-square;}\\ 
\frac{\tau(n)-1}{2}, & \text{ if $n$ is a square.}
\end{cases}
\]

\bigskip

\noindent Case (ii): Assume that $n\equiv$ 0 (mod $2$). Let $\beta$ be the highest power of $2$ that divides $n$. For every odd divisor $d$ of $n$, we have $\frac{n}{d}-d\equiv$ 1 (mod $2$) and for every even divisor $d$ of $n$ such that $2^\beta|d$, we again have $\frac{n}{d}-d\equiv$ 1 (mod $2$). So, the divisors of these
types does not contribute to the set $D_n$. Consider every even divisor $d$ of $n$ such that $d<\sqrt{n}$ and $2^\beta$ does not divides $d$; then, for such $d$, we have $\frac{n}{d}-d\equiv$ 0 (mod $2$). Thus, $D_n$ is the set of all even divisors of $n$ that are less than $\sqrt{n}$ and not a multiple of $2^\beta$. Let $D_n''$ be the set of all even divisors of $n$ that are greater than $\sqrt{n}$ and not a multiple of $2^\beta$. Now we define $\psi:D_n\to D_n''$ by $\psi(d)=\frac{n}{d}$ for every $d\in D_n$. Clearly, $\psi$ is a bijective mapping and $D_n\cap D_n''=\emptyset$. Thus, 
\[|D_n|=\begin{cases}
\frac{(\beta-1)\tau(\frac{n}{2^\beta})-1}{2}, & \text{ if $n$ is a square ;}\\ 
\frac{(\beta-1)\tau(\frac{n}{2^\beta})}{2}, & \text{ if $n$ is not a square.}
\end{cases}
\]

The second proof is now completed. 
\end{proof}

\begin{thebibliography}{10}

\bibitem{GE} G. E. Andrews,  Stacked lattice boxes, {\em Ann. Comb.} \textbf{3} (1999), 115--130.

\bibitem{TA} T. M. Apostol, {\em Introduction to Analytic Number Theory}, 
Springer, 1976. 

\bibitem{dav} A. David Christopher and M. Davamani Christober, Relatively prime uniform partitions, {\em Gen. Math. Notes.} \textbf{13} (2012), 1--12.

\bibitem{dav1} A. David Christopher and M. Davamani Christober, Estimates of five restricted partition functions that are quasi polynomials, {\em Bull. Math. Sci.} \textbf{5} (2015), 1--11.

\bibitem{dav2} A. David Christopher and M. Davamani Christober,  On asymptotic formula of the partition function $p_A(n)$, {\em INTEGERS}  \textbf{15} (2015),
Article \#A2. 

\bibitem{jac} C. G. J. Jacobi,
{\em Fundamenta Nova Theoriae Functionum Ellipticarum},
K\"onigsberg, 1829.  Also in {\it Gesammelte Werke,} Band I, pp.~49--239.

\bibitem{mac} P. A. MacMahon,  Divisors of numbers and their continuations in the theory of partitions, {\em Proc. London Math. Soc}., \textbf{19} (1919), 75--113.  Also in {\it Collected Papers}, Vol.~2, pp.~303--341.

\bibitem{tan} Nesrine Benyahia Tani and Sadek Bouroubi, Enumeration of the partitions of an integer into parts of a specified number of different sizes and especially two sizes, {\em J. Integer Seq.} \textbf{14} (2011),
\href{https://cs.uwaterloo.ca/journals/JIS/VOL14/Tani/tani7.html}{Article 11.3.6}.

\bibitem{S1} N. J. A. Sloane,
\textit{Online Encyclopedia of Integer Sequences}, \url{http://oeis.org}.

\end{thebibliography}

\bigskip
\hrule
\bigskip

\noindent 2010 {\it Mathematics Subject Classification}: Primary 05A17; Secondary 11P81.

\noindent {\it Keywords}: partition, size of a partition, parity, asymptotic estimate.

\bigskip
\hrule
\bigskip

\noindent (Concerned with sequences
\seqnum{A000005},
\seqnum{A000203},
\seqnum{A002133},
\seqnum{A004526},
\seqnum{A010052},
\seqnum{A117955}, and
\seqnum{A117956}.)

\bigskip
\hrule
\bigskip

\vspace*{+.1in}
\noindent
Received  March 27 2015;
revised versions received  August 29 2015; October 5 2015; December 7 2015.
Published in {\it Journal of Integer Sequences}, December 9 2015.

\bigskip
\hrule
\bigskip

\noindent
Return to
\htmladdnormallink{Journal of Integer Sequences home page}{http://www.cs.uwaterloo.ca/journals/JIS/}.
\vskip .1in


\end{document}

                                                                                

