\section{Introduction}
The World Health Organisation (WHO) defined the COVID-19 outbreak as a global pandemic and a severe global threat.
Its effects spanned to nearly every aspect of human life around the globe, including health, economy, environment as well as society.
In the attempts of managing such outbreaks, information plays a vital role, because of its ability to enhance or even hinder the countermeasures deployed by authorities \cite{Kim2019}.
For example, in Sri Lanka, a developing country with a population of approximately 21 million \cite{populationSL}, social media anticipated a possible country-wide lock-down before it was officially declared by the government.
As a result, people overcrowded shops and markets to buy essential goods without following any health precautions.
This also led to a shortage of certain resources, especially for those who got through life by a daily wage and could not stockpile any essential goods.
These actions hindered the government which was attempting to control and mitigate the effects of the COVID-19 virus, and potentially increased the vulnerability of the society against the pandemic.
In addition, another notable incident that occurred was, the spreading severe misinformation on social media during the outbreak. As a response to such actions, the government took measures to incarcerate the individuals involved.
When facing an pandemic like COVID-19 for which there were no cures nor vaccines during the first few months, the only tools that humans held were social distancing and quarantine.
Thus, the value of researching and subsequently harnessing social media to improve countermeasures against the virus in the prevailing information era is apparent.

Social media platforms such as Facebook provide direct access to an immense amount of information, which also includes fact-based news as well as rumours.
At the same time, these platforms encourage various perceptions based on information provided by the society. In addition, the conception of related narratives also occur.
This sparks and influences public debates, especially when the topics discussed are controversial.
Furthermore, it is observed that users of social media tend to acquire or ignore information based on such perceptions \cite{cinelli2020covid19:italypaper}.

Thus, with the objective to understand the behaviours of the Sri Lankan people during a pandemic, this research provides an analysis based on observations as well as content posted by a sample set of the Sri Lankan Facebook user-base. The sample set includes data from posts of 50 randomly selected profiles and pages that span across approximately 60 days.
A notable point regarding this data collection process was that it was manually done only considering publicly shared content, which was subsequently anonymised.
Despite its severe inefficiencies, this manual process was chosen due to it being one of the few non-restrictive forms of data collection on Facebook.
Although this method imposed limitations on the number of sources that could practically be extracted, this allowed for a much more thorough analysis which considered not only image based posts, but also posts that indirectly related the pandemic.
The results of the research present behavioural patterns observed in three major topic areas as well as analyses aggregating the collected data.
Utilising the results of this study, the possibility of using social media as a means of mitigating the spread of the pandemic by governments and relevant authorities is also present. In addition, it should be noted that the scenario chosen for this research may be generalisable to any developing country as well as any crisis event.

\section{Related work}

The impact that social media has on society is growing day by day. The field of research is also no exception \cite{Kapoor2018:SM}. The analysis of how the general populace reacted in social media during significant events is nothing new as well.
Moody-Ramirez and Church \cite{MoodyRamirez2019} discusses how citizens of the United States of America (USA) have used memes in Facebook to convey their political opinions the during the 2016 USA presidential elections. The research by Sandoval-Almazan and Valle-Cruz \cite{SandovalAlmazan2018} presents the behaviour of Facebook users during a local government campaign of the Central State of Mexico in 2017. Here, authors have used more than 4000 Facebook posts to examine the people's sentiments to the campaign.

The study by Öztürk and Ayvaz \cite{OZTURK2018136} can be taken as a prime example where the significant event is a crisis. In this research, the authors have collected Tweets related to the Syrian refugee crisis and performed a sentiment analysis on them. Here a noteworthy point would be that the authors analysed English and Turkish Tweets separately. Whereupon doing as such, they have discovered a significant difference in terms of sentiments. This sheds insight into how peoples' reactions would differ based on their ethnicity.
Additionally, several researches \cite{7857213, Li2015TwitterMF, PUROHIT20132438, CARLEY201648} present methods to utilise messages in social media to aid in the situation at hand.

Falling under a subsection of crisis events, infectious diseases also possess a significant threat to humanity as they possess the capability to hamper our everyday lives in more ways than one. Thus, social media content relating to such events are quite common during outbreaks of such diseases. This was especially the case during the Middle East Respiratory Syndrome (MERS) \cite{OMRANI2015188} virus outbreak in South Korea.
The research by Kim et al. \cite{MERS:Korea1} utilises such content where the authors have analysed social media messages, especially considering their spatiotemporal attributes. Here the authors have proposed that the local governments must play an active role to supply official information as the excessive spread of rumours and misinformation was a significant issue during the crisis. Similarly, the study by Choi et al. \cite{article:MERSKorea} which focuses on the outbreak in South Korea as well, also signifies the impact of social media on risk perceptions. Although not limited Social Media alone, Jang and Baek \cite{MERSPHO} presented yet another research related to the MERS outbreak in South Korea. Here, the authors stressed the importance of the credibility of Public Health Officials in order to avoid the spread of misinformation.
In addition, the reaction of the Chinese populace on social media due to the MERS-CoV
and Avian Influenza A(H7N9) outbreaks has been analysed by Fung et al. \cite{pmid24359669:MERS}, where they have concluded that the distance to a particular outbreak of the disease plays a key role on how strongly the people would react.

COVID-19 which is yet another infectious disease that has had a considerable impact worldwide. With the outbreak starting from Wuhan, China, within the span of less than a year, it has spread across the globe and effectively shutdown most countries. However, it could be observed that numerous researchers have conducted various studies related to this topic in a short period of time. Particularly, focusing the country the virus outbreak began, China.
The analysis of social media related to this outbreak was one such way the behaviour of people during this crisis was analysed. The study by Zhu et al. \cite{zhu2020:CORONAChinaWeebo} presents one such example where randomly sampled Weibo users from China, were analysed to identify the level of the attention the users had towards the COVID-19 virus.
The work by Gao et al.\cite{Gao2020} discusses about the mental health issues which were highlighted in social media during COVID-19 pandemic in China.
In addition, they have described how exposure to social media caused the development of mental health problems during the crisis period.
Furthermore, the research by Negin Karisani and Payam Karisani  \cite{karisani2020mining} analysed the impact of the outbreak in China based on data from Twitter. In this research, authors have used state-of-the-art machine learning models to determine the disease spread based on insights gained from social media.

In addition, representing the spread of social media messages similar to a disease, Cinelli et al. \cite{cinelli2020covid19:italypaper} analysed messages related to the COVID-19 outbreak and presented patterns as to which they spread in a variety of social media platforms. Furthermore, the research by Boberg et al. \cite{boberg2020pandemic:germanpaper} analysed Facebook pages of alternative news media and presents yet another example for studies conducted on social media that relates to the COVID-19 outbreak.
The research by Murray et al. \cite{murray2020symptom} analysed the COVID-19 outbreak from the perspective of personal experiences utilising data from the social media platform, Reddit. In this study, the authors used social media data to generate important insights on symptoms of the disease as well as sentiments felt during the outbreak.
Kadam and Atre \cite{Kadam2020} discussed the panic that ensured in social media during COVID-19 outbreak in India. The authors analysed social media content and their corresponding societal responses to identify their negative impact to the measures taken to curtail the virus outbreak in the country.
The study by Depoux et al. \cite{Depoux} stands out in the aspect on how it portrays social media as a pandemic that spreads misinformation and rumours greater than the speed of transmission of COVID-19.
Ziems et al. \cite{ziems2020racism} presents a research on how racism was developed on social media during the COVID-19 outbreak. Here, they have specifically focused on how racial hate towards Chinese and other Asian countries spread, and role of counter-hate speech on mitigating the spread.
Major social and behavioural changes of people because of the massive global health crisis were analysed by Bavel et al. \cite{Bavel2020}.
In addition, the authors have evaluated how psychological and behavioural science concepts could be used to mitigate the negative impact of the health crisis.

\section{Methodology}

\subsection{Data collection and Categorisation}

The research conducted focused on using Facebook as its primary source of data.
This specific selection of Facebook was due to it being the most popular medium of social media used in Sri Lanka. The extent of the popularity was such that the user-base of Facebook was multiples of times larger than other social media platforms combined  \cite{Statcounter:SL}. Thus, it was the belief that data collected from Facebook would lead to a sample that would better represent the Sri Lankan populace.

Following the decision regarding the social media platform to collect the data, data of posts from 50 sources were manually collected and categorised. These sources were comprised of both profiles as well as pages that were selected at random.
However, the persons in charge of such sources spanned across a wide array of ideals as well as professions. In addition, it was assumed that for profiles, an individual was in charge, and for pages, a group of like-minded people were in change.
A notable limitation regarding this method would be that it would only capture the behaviour of the individuals or groups that are in charge of these 50 sources and not the entire populace as a whole.
The reason for employing such small limits and manual collection mechanisms was due to the restrictions placed in the Facebook platform to extract data.
However, as the collective number of posts amounted to 2398, we believe that the sample size would be sufficient for this exploratory study. Nonetheless, there were certain added benefits of this method in comparison to a standard data collection method via a query. Such benefits were that this method would also take image posts such as memes as well as posts that do not directly refer to the COVID-19 virus but were posted due to an event related to it into account as well.

\begin{figure}[t!]
    \includegraphics[width=\columnwidth]{figures/flow1.png}
    \caption{Flowchart of the data collection process of a single source}
    \label{flowchart}
\end{figure}

In the data collection process itself, public posts along with data regarding its significance were manually collected that related to the COVID-19 virus or originated due to the result of the outbreak. To elaborate, taking a source at a time, the \textit{wall} of the source was scanned for related posts. Once found, each post was then counted for one out of 57 categories along with its the number of the reactions, number of comments as well as the number of shares. It is these numerical data that will be used to measure the significance of posts. In addition, an attribute was stored to track if a source posted the content that either supported or criticised a particular topic. However, if multiple posts contradicted one another, it was taken as that source neither supported nor criticised the topic in question. A profile that first criticised the actions of the government and then later praised them would be an example of such a situation. Furthermore, it should be noted that the initial 57 categories were created empirically during the categorisation process itself if a post found did not fit into any of the existing categories. To give an example, a post detailing the negative effects of panic buying was found in one of the sources. The list of topics would then be checked, and if a suitable topic such as \textit{Panic buying} was present, details of the post would be added under that topic section for that particular source. If such a topic did not exist till that point, then it was created and added to the list of topics. Following such action, the details of the post would then be marked under this new topic section. Fig. \ref{flowchart} depicts the aforementioned process for a single source.

Following the completion of the data collection, the initial categories were reduced to 38 by combining related topic areas. The reason for this action was to eliminate the redundancy that was introduced when collecting data as certain topics areas were more specific instances of another more general topic area. The final set of topics utilised in the categorisation process as well as the cluster they belong to are mentioned presented in Table \ref{table:topics}.

\begin{table*}[]
    \caption{Topic clusters and topic categories}
    \centering
      \begin{tabulary}{\textwidth}{C||LL}
        \hline
        \hline
        \textbf{Topic Cluster} & \multicolumn{2}{c}{\textbf{Topics}}
        \\
        \hline
        \hline
        \multirow{4}*{Start of the outbreak} & ~~\llap{\textbullet}~~ Situation in China &  ~~\llap{\textbullet}~~ Other things to worry about / Other diseases
        \\
        &  ~~\llap{\textbullet}~~ Early cases in Sri Lanka &  ~~\llap{\textbullet}~~ Bringing people back / Support for those in other countries
        \\
        &  ~~\llap{\textbullet}~~ Curing 1st case in Sri Lanka  &  ~~\llap{\textbullet}~~ Early measures to stop the virus
        \\
        &  ~~\llap{\textbullet}~~ Irresponsible behaviour &  ~~\llap{\textbullet}~~ People coming back by themselves from other countries
        \\
        \hline
        Quarantine by Govt & ~~\llap{\textbullet}~~ Quarantine by the Government
        \\
        \hline
        Lock-down & ~~\llap{\textbullet}~~ \#LockdownSL & ~~\llap{\textbullet}~~ Government decisions for social distancing
        \\
        \hline
        \multirow{3}*{Supplies} & ~~\llap{\textbullet}~~ Panic buying & ~~\llap{\textbullet}~~ Discipline after curfew release
        \\
        & ~~\llap{\textbullet}~~ Shortage of supplies / services & ~~\llap{\textbullet}~~ Deficient / Overpriced products
        \\
        & ~~\llap{\textbullet}~~ Delivery & ~~\llap{\textbullet}~~ Local production / inventions
        \\
        \hline
        Economy & ~~\llap{\textbullet}~~ Economy & ~~\llap{\textbullet}~~ Government's economic decisions
        \\
        \hline
        \multirow{2}*{Politics} & ~~\llap{\textbullet}~~ President / Government & ~~\llap{\textbullet}~~ Other political parties / Politicians
        \\
        & ~~\llap{\textbullet}~~ Postponing election & ~~\llap{\textbullet}~~ Media / Social Media
        \\
        \hline
        \multirow{2}*{Advice} & ~~\llap{\textbullet}~~ Scientific / Valid advice & ~~\llap{\textbullet}~~ Cultural and Religious beliefs / activities
        \\
        & ~~\llap{\textbullet}~~ Rumours & ~~\llap{\textbullet}~~ Information about Sri Lanka
        \\
        \hline
        \multirow{3}*{Services / People} & ~~\llap{\textbullet}~~ Armed forces & ~~\llap{\textbullet}~~ Religious / Famous figures / Top companies
        \\
        & ~~\llap{\textbullet}~~ International organisations & ~~\llap{\textbullet}~~ Other essential services / All services
        \\
        & \multicolumn{2}{l}{~~\llap{\textbullet}~~ Medical / Government Medical Officers' Association (GMOA)}
        \\
        \hline
        Humour & \multicolumn{2}{l}{~~\llap{\textbullet}~~ Humour / Entertainment / Online activities / Boredom relief}
        \\
        \hline
        Donations & ~~\llap{\textbullet}~~ Donations / Helping others / Needy
        \\
        \hline
        Global Situation & ~~\llap{\textbullet}~~ Situation in other countries / World
        \\
        \hline
        \multirow{2}*{Other} & ~~\llap{\textbullet}~~ Benefits of the COVID-19 outbreak & ~~\llap{\textbullet}~~ Explain via Maths  / Curves
        \\
        & ~~\llap{\textbullet}~~ Dire situation / Sorrow
        \\
        \hline
        \hline
      \end{tabulary}
    \label{table:topics}
\end{table*}

Furthermore, the data collection process only considered Facebook posts content created on or before the 15\textsuperscript{th} of April 2020. This date, in particular, was kept to ensure that the data extracted from each source spanned through a consistent period of time. As this research primarily focuses on the initial reactions to the COVID-19 outbreak, we deemed that the aforementioned date would be sufficient as it was roughly a month after the virus outbreak in Sri Lanka.

The aforementioned collection process was carried out by a team of individuals who were significantly knowledgeable in data analysis.
Although the data collection process was cross-validated among the team members, validation of the data itself was not attempted due to the challenges from the dynamic nature of posts in Facebook.
However, to mitigate the impact of fluctuations in the data, the collection process was initiated approximately a week after the cutoff date for considering posts. In addition, due to any privacy issues that could arise, the collected data was kept secured and was not included in a public domain.

\subsection{Normalisation}
An observed point of imbalance in the data is the vastly varying number of followers of each source. Due to this variance, a significant difference could be observed considering the number of reactions, comments and shares from once source to another. When considering the total significance per topic, this factor would skew the data in the same pattern or behaviour of the more popular sources than considering all the sources generally as a whole. Thus, the attributes related to significance, such as the topic-wise number of posts, reactions, comments as well as shares were subjected to normalisation considering each person.

\begin{equation}
\hat{s}_{k}^{i} = \frac{100 \times s_{k}^{i}}{\sum_{n=1}^{38}s_{n}^{i}} \label{eq1}
\end{equation}

The task of normalisation was accomplished by dividing a significance attribute of a topic by the sum of the said attribute's value for all the topics of the person considered. The result was then multiplied by 100 to get a more significant figure to avoid small fractions. The equation relating to this process is given by \eqref{eq1}.
Here, \textit{s$_{k}^{i}$} denotes some significance attribute such as the number of posts, reactions, comments or shares pertaining to some topic for the i\textsuperscript{th} source, while \textit{\^s$_{k}^{i}$} denotes its normalised value.
Furthermore, \textit{k} denotes the topic that is taken into consideration while \textit{n} iterates over all the topics. To give an example, assume that a profile has gathered 400 likes for posts in the \textit{Panic buying} topic category. If the said profile had gathered 2000 likes in total, the normalised number of likes for the \textit{Panic buying} topic would be 20 for that profile.

\section{Observed patterns of behaviour}
Based on the collected data as well as key events observed throughout the relevant time period, various patterns were identified in regards to the behaviour of the Sri Lankan populace. In addition to the data collected specifically for this research, certain observations were also taken into account from screenings which were randomly timed to support the patterns identified.

Furthermore, this analysis of behaviours was conducted focusing on generalised key topics that were prevailing at the time. This was done in order to conduct a more in-depth analysis, where each key topic contains subtopics that are related to one another. Although there is an overlap between such subtopics, the underlying intention behind them is in relation to the main topic. For example, posts related to key topic areas such as returnees from foreign countries as well as resource acquisition may both include posts that fall under the \textit{President / Government} category.

The behaviours patterns observed for each sub-topic are illustrated in Fig. \ref{flow:1}, Fig. \ref{flow:2} and Fig. \ref{flow:3}. Here, the solid arrows represent the majority pattern observed in public, while the dashed arrow represents the minority. It should be noted that the public observations were taken from the random scans, and do not necessarily follow the same patterns as the collected data. The topics, along with the reactions observed to the topics, are represented by the rectangular boxes. These reactions were either support or against. The darkly shaded boxes with solid outlines represent that the reaction to that topic is the majority reaction in the data. The opposite of this is represented by the lightly shaded boxes with dashed outlines. The white boxes represent that the reaction for the topic that it contains is neutral in the data. In addition, the boxes that connect to an arrow present a plausible reason for the flow pattern represented by that arrow.

\subsection{\#LockdownSL}

\begin{figure}[h!]
    \includegraphics[width=\columnwidth]{figures/lockdown1.png}
    \caption{Flow diagram showing patterns related to the lock-down}
    \label{flow:1}
\end{figure}

This can be considered as one of the first major movements that provoked the majority of the Facebook audience in Sri Lanka to post content related to the COVID-19 pandemic. The pattern regarding the flow of post categories related to this topic is presented in Fig. \ref{flow:1}.

Well after the recovery of the first COVID-19 patient who was a foreign nationalist, the identification of the second case in Sri Lanka sparked panic among the people. At this point, the government was constantly requested to lock-down the country to prevent outsiders who have contracted the virus from coming in. The public did so on Facebook by changing their profile pictures and posting with the hashtag \textit{\#LockdownSL}, demanding the government to go into lock-down.
As the second patient contracted the disease due to being in a profession that regularly associated with foreigners, the call to lock-down the country could be somewhat justified. In addition, due to the fact that this was the first case of COVID-19 being contracted to a Sri Lankan nationalist within Sri Lanka, may have led the public to overreact.

Although the majority of the population supported the Lock-down campaign, some stated that it was not required with the at that time circumstances. An argument presented by such people was that it was too early to take such strict action. In addition, due to Sri Lanka being a country where international tourism plays a great role in its' economy, another argument that could be seen against the lock-down was that such action would not be bearable for the country.

With such observations, a deeper analysis was done on the behaviour the people who both supported and rejected the lock-down campaign via their Facebook profiles.
From the people who stood with imposing the lock-down, the majority seemed to be discussing the initial cases found in the country.

Additionally, some people were talking about the lock-down to indirectly support their political preferences. This was especially highlighted during the heated discussion that occurred on the decision to postpone the general election.
To give some insight into this matter, due to the Presidential election in 2019, the government that existed before it lost power as the prevailing president was primarily supported by the opposing party.
Thus, the prevailing government is that of the said opposing party. In order to create a parliament that supports the prevailing president, the holding of the general election is pivotal. Thus, the goal of the prevailing government was to hold it at the earliest.
Out of the people who discussed about the lock-down, the majority made their next few posts supporting or apposing various political decisions. This polarised behaviour was expected as these series of incidents had a clear influence on the populace based on their political preferences.

Additionally, the government also took immediate action after the initial COVID-19 cases were discovered. These actions taken had the foreboding signs that a curfew would be placed and the country would be truly locked-down. Thus, it came to no surprise when an island-wide curfew was later announced by the government.
However, this curfew lasted for an unprecedented amount of time. Low-risk areas were given intermittent relaxing of restriction, while the capital and nearby areas experienced a complete lock-down surpassing 70 days due to the high risk of community spreading.
To make things intense this kind of civil liberty restrictions were not experienced even during the intense times of the 30-year war witnessed by the Sri Lankans.
When considering the posts after imposing the curfew, the majority of the people who participated in the \textit{\#LockdownSL} movement, again supported curfew. This again was no surprise as this was the practical implementation of their wish. However, there were also some who supported the lock-down but were against the curfew. This may have been due to the intense restrictions that came about due to the curfew, which were not apparent initially. Nonetheless, some of these individuals also appeared to have found fault no matter what action the government took. However, the people who stood against the lock-down appeared to have supported the curfew.

Thus, considering the patterns and behaviours, it is possible to hypothesise that certain individuals who posted content relating to the lock-down of the country did so following a trend. Such people had no proper idea about the major concerns or requirement of the lock-down. However, it could also be possible that some of these individuals had second opinions regarding their initial decisions.

\subsection{The return of those from foreign countries}
\begin{figure}[h!]
    \includegraphics[width=\columnwidth]{figures/bring_back1.png}
    \caption{Flow diagram showing patterns of foreign returnees of Sri Lanka}
    \label{flow:2}
\end{figure}
This topic focused on patterns from Facebook posts of the Sri Lankan populace that related to the return of those from foreign countries. Observed flows of sub-topics related to this topic are presented in Fig. \ref{flow:2}.
Content related to this topic can be seen across two main phases.
The first phase began with the news of the students who were stranded in Wuhan, the birthplace and epicentre of the COVID-19 outbreak.
With this discovery, many people, especially the relatives of the students requested the government to bring the students back. In Facebook, it was observed that the majority of the public supported this request and the cause of bringing the students back.
However, a minority stood against it by highlighting the fact that there is a possibility the students could carry the virus and spread it in Sri Lanka.
Nonetheless, the government sent an aircraft to fetch the students.
After the returning to Sri Lanka, the students were directed to a quarantine facility which was coordinated and run by the armed forces. It could be observed that the majority supported and praised the government as well as those who were involved in this action. However, there was a minority that stood against this decision. Furthermore, there were minor reports that the airline staff and their family members were discriminated.

The second phase initiated with the arrival of returnees from countries that were severely hit by the COVID-19 virus.
During this time, it was observed that the general public was more aware of the severity of the virus and they were more hesitant to support the people coming back from foreign countries. This was regardless of the fact that the government had decided to maintain the quarantine process for such arrivals.
In addition, during this time period, an incident occurred where returnees from a country where the COVID-19 virus was rampant protested against the quarantine process at the airport. The neglection of health advice by these individuals was a key point of that incident.
With this, the aforementioned public hesitance turned into outright resistance. Thus, the majority of the Sri Lankan populace turned against such returnees. However, as time progressed, all arriving from foreign countries were subjected to the quarantine process regardless of the county they arrived from.

It was observed that this quarantine process and the armed forces who carried it out were heavily praised and supported by the majority of the public. Although there was also a minority that undervalued and criticised such efforts.

Thus, considering these observations, it is possible to conclude that the public was initially supporting those stranded in other countries. However, due to the detrimental actions of those who arrived later spreading on Facebook, this support turned into opposition. Nonetheless, the majority of the public continued to support those were in essential services throughout the entire period.

\subsection{Resources and their acquisition}
\begin{figure}[h!]
\includegraphics[width=\columnwidth]{figures/buying1.png}
\caption{Flow diagram showing patterns of resources and their acquisition}
\label{flow:3}
\end{figure}
The topic flow patterns which were related to this topic are presented by Fig. \ref{flow:3}. Initial posts that fell under this section were focused on the various decisions by the government of Sri Lanka that related to its economy.
One such decision, in particular, was not lowering the oil prices in the country even though the price of crude oil was reduced significantly.
Though it is to be expected for people to lash out against this matter, certain individuals defended this decision.
These individuals later supported their standpoint when it was revealed by the government that the extra monetary resources collected by not lowering oil prices, were used to lower the price of certain food items.
Specifically, these food items were canned salmon and dhal. It was clear that this decision was taken to reduce the burden of low-income families in the country if the country went into lock-down.
However, the presence of political influence regarding posts that either supported or criticised such government decisions could not be denied based on the older posts of the sources.

Starting from initial stages of the outbreak, posts admonishing the act of panic buying were regularly observed. This was especially true after the curfew was announced.
However, such posts did not portray the severity as in certain other countries where shelves were barren and devoid of goods.
Instead, most of these posts focused on the act of crowding in large queues when shopping. The argument was that this was counter-intuitive as it would help spread the virus more rapidly.

Following the island-wide curfew by the government, posts relating to helping the needy could be commonly seen. Such posts pointed out that groups such as the destitute, elderly and orphans would be severely affected by their lack of means to get food for their daily lives. As if a response to these, multiple posts showing food donations to such vulnerable groups and even stray animals could also be observed.

Following the lifting of the curfew in districts without a major spread of the virus, the appearance of posts praising the discipline of Sri Lankans for properly following the necessary protocol began to emerge. This was due to such people properly maintaining a distance of 1 metre when in queues.
However, when the curfew was lifted in more densely populated districts the following day, crowding at stores could be witnessed. This caused posts criticising panic buying and crowding to reemerge. Nonetheless, such crowding may have been inevitable as the people in such dense areas would have been starved for essential resources with only a limited number of outlets to acquire them.
In addition, posts could be found showing those whose professions were essential to combat the virus such as nurses getting into long queues at stores. These posts also requested that such individuals be given preference when in queues as they were the vanguard in combating the virus.

However, as the government came to realise that the avoidance of such crowding was implausible, the country was put into indefinite lock-down. Following this course of action, the promotion of delivery mechanisms to distribute essential goods was looked into.
Due to this, posts relating to such deliveries began to circulate in social media. A type of post, in particular, that could be observed was where people would request for contact numbers of essential goods deliveries as well as services. This indicated the lack of a proper mechanism to obtain methods of contacting crucial services.
However, due to the apparent unethical practices by certain companies when making deliveries, posts denouncing such companies emerged.
In addition, a surge of posts promoting local productions as well as innovations also sprang forth sporadically. Such posts heavily promoted nationalism stating that Sri Lanka should stop relying on imports and focus on producing required goods on its own.

Thus, the majority of the posts found relating to this topic area seemed to focus on advising on how to properly acquire resources. The method of doing so took on many forms such as pointing out facts which were oblivious or otherwise and even direct criticism.

\section{Result analysis}
Following the categorisation of the posts from the sources considered, various forms of analyses were conducted in order to identify key points relating to the behaviour of the selected set of sources.

\subsection{Topic-significance}

Based on the data collected from 50 profiles and pages, an analysis was performed to identify the topics that were highly discussed on Facebook throughout the period of study.
As Facebook appeared to have more than 70 percent of the total social media user-base in Sri Lanka\cite{Statcounter:SL}, it could represent the majority of the general public better than any other social media platform. Thus, this analysis portrays the significance of the various discussions that occurred in society during the pandemic situation in Sri Lanka.

As described in the methodology section, following the generation of the 38 topic categories the results were subjected to normalisation based on each profile. From these normalised values, \eqref{eqtts} was derived to calculate the total significance per topic.

\begin{equation}
T_{k} = \sum_{i=1}^{50}[\hat{s}_{k,p}^{i}+\hat{s}_{k,r}^{i}+\hat{s}_{k,c}^{i}+\hat{s}_{k,s}^{i}]
\label{eqtts}
\end{equation}

In  \eqref{eqtts}, \textit{T\textsubscript{k}} denotes the total topic significance for \textit{k\textsuperscript{th}} topic. In addition, \textit{\^s$_{k,p}^{i}$}, \textit{\^s$_{k,r}^{i}$}, \textit{\^s$_{k,c}^{i}$}, as well as \textit{\^s$_{k,s}^{i}$} corresponds to the \textit{i\textsuperscript{th}} person's normalised post, reaction, comment, and share counts.

\begin{figure*}
\includegraphics[trim={0 1cm 0 3cm}, width=\textwidth]{figures/bar-enlarged1.png}
\caption{Total significance of each topic}
\label{fig:bar}
\end{figure*}

The bar graph in Fig. \ref{fig:bar} illustrates the significance of the major topics that were discussed during the period of the research. Here, the 38 different topics were ordered based on the topic significance. A significance score ranging from 2929.74 to 16.17 could also be observed.

According to the bar graph in Fig. \ref{fig:bar}, the topic cluster of \textit{Humour / Entertainment / Online activities / Boredom relief} had the highest topic significance score of 2929.74, surpassing all other topics by a considerable margin.
This behaviour could be justified as there were plenty of sarcasm based posts encountered throughout the study.
It seemed that the majority of the people appeared to have used various incidents that happened during the period to be making posts on humour and entertainment. With the policies to ensure social distancing in place, the sensation of solitude that arose because of it may have led the people to use Facebook as a boredom releasing mechanism.

Apart from humour, another prominent area was politics, where several topics with high significance scores could be observed.
This situation was also expected as there was a parliamentary election which originally happened to be held on 25\textsuperscript{th} of April. Thus, most of the populace were discussing political related topic groups such as \textit{President / Government} (1684.30), \textit{Other political parties / Politicians} (1258.26), \textit{Government Decisions for social distancing} (840.93), and \textit{Postponing election}(419.36).
However, those who discussed such topics interpreted political matter in a very polarised manner that either supported or opposed the government.

The topic \textit{Scientific / Valid advice} which held a score of 1663.64, indicated that Facebook was also being used as a medium to exchange valid and scientific advice to mitigate the spread of the virus.
The influence of famous personalities may have been the cause of this behaviour. This was due to such influential figures posting videos on how to properly behave during the COVID-19 outbreak, and included individuals such as cricket players, entrepreneurs, journalists as well as politicians. This, in particular, can be highlighted as a promising use of social media during a crisis.

During this disastrous period, there were several entities and authorities that played a splendid role in controlling the virus from spreading in the country.
Thus, Members of the Government Medical Officers' Association (GMOA), other medical officers, as well as armed forces were held in high regard by the people. This made posts related to such topics become especially highlighted.

When moving down the graph, a cluster of topics with medium impact where the significance varies from 641.30 to 319.35 could be seen. These topics mainly covered the acquisition of essential resources as well as the various behaviours of the people.

Topics such as \textit{Early cases in Sri Lanka}, \textit{Situation in China}, \textit{Early measures to stop the virus} and \textit{Explain via Maths / Curves} had a lower significance when considering topic scores. Most of these topics were discussed in the initial period of the pandemic, especially before the government took strict actions.
Thus, it indicates that people appeared to be less interested in the virus during the early stages.
Generally speaking, when comparing the topics against time, it was observed that most of the topics came into the discussion after the lock-down of the country. Additionally, significant incidents such as panic buying as well as returnees from foreign countries, bolstered the attention people had towards COVID-19.

\subsection{Heat-map}

In order to get a holistic idea on the relations between topics, profiles and significance, a heat map was derived. In addition, the topics were clustered further to give a more compact representation.

\begin{figure*}
\includegraphics[width=\textwidth,height=0.2\textheight]{figures/heat_map_new.png}
\caption{Heat-map showing profile-topic-significance}
\label{fig:heat}
\end{figure*}

The heat map in Fig. \ref{fig:heat} presents 12 topic clusters that were made from the 38 initial topics. The columns represent the different sources used to make the data sample. Each cell had been coloured based on its significance, where the higher the significance, the darker the colour. The significance has been calculated per profile utilising  \eqref{eqppts}, which was based on the normalised number of posts, reactions, comments and shares.

\begin{equation}
T_{k}^{i} = \hat{s}_{k,p}^{i}+\hat{s}_{k,r}^{i}+\hat{s}_{k,c}^{i}+\hat{s}_{k,s}^{i}
\label{eqppts}
\end{equation}

Here, \textit{T$_{k}^{i}$} denotes the \textit{k\textsuperscript{th}} topic's significance of the \textit{i\textsuperscript{th}} source. Similarly,
\textit{\^s$_{k,p}^{i}$}, \textit{\^s$_{k,r}^{i}$}, \textit{\^s$_{k,c}^{i}$}, and \textit{\^s$_{k,s}^{i}$} corresponds to the \textit{i\textsuperscript{th}} person's normalised number of posts, reactions, comments, and shares.

\subsection{Topic Co-Occurrence}
In addition to the heat-map, as a means of analysing the interrelation of the topics, their co-occurrences were also calculated.
This was accomplished by first taking any two topics, and then counting of the number of profiles or pages from the sources that contained both of the topics. The equation used when considering two sources was \eqref{eq:cooc}, where the value of \textit{c$_{k,l}^{i,j}$} denotes if the topics \textit{k} and \textit{l} co-occurred between the \textit{i} and \textit{j} sources.

\begin{equation}
  c_{k,l}^{i,j}=\begin{cases}
    1 & \text{i and j posted content on topics k and l}.\\
    0 & \text{i or j did not post content on k and l}.
  \end{cases}
  \label{eq:cooc}
\end{equation}

These calculations between each unique pair of sources were then summed to get the final co-occurrence scores between topics as in \eqref{eq:tcooc}. Here, \textit{C$_{k,l}$} denotes the total co-occurrence score between the topics \textit{k} and \textit{l}. Although unsurprising, the pair of topics with the highest co-occurrence count of 31 was the \textit{Humour / Entertainment / Online activities / Boredom relief} and \textit{President / Government} topic groups, which also boasted the highest normalised significance values.

\begin{equation}
  C_{k,l}= \sum_{i=1}^{50}\sum_{j=i+1}^{50}c_{k,l}^{i,j}
  \label{eq:tcooc}
\end{equation}

As a means of analysing the co-occurrence of topics, the co-occurrence graph in Fig. \ref{fig:fullcoo} was created.
In this graph, the 38 topic categories were represented as nodes.
Furthermore, to associate co-occurrence with the topic frequency, a score was created using the normalised sum of posts and then represented in the graph via the size of the nodes.
The nodes were then ordered in a circle using this attribute which was calculated by using \eqref{eq:freq}. Here, \textit{f$_{k}$} denotes the score for topic \textit{k}, with the remaining symbols defined by the notations mentioned previously.

\begin{equation}
  f_{k}= \sum_{i=1}^{50}\hat{s}_{k,p}^{i}
  \label{eq:freq}
\end{equation}

In Fig. \ref{fig:fullcoo} the node with the highest popularity is located at the top with the sizes of nodes decreasing counter-clockwise.
In addition, the edge weights of the graph, which are also represented by the thickness of the edges, utilise the co-occurrence values calculated previously.

\begin{figure*}
\includegraphics[trim={0 3cm 0 3cm}, width=0.8\textwidth]{figures/circlefullcoo1str4.png}
\centering
\caption{Co-occurrence graph of the topic categories based on data sources}
\label{fig:fullcoo}
\end{figure*}

Upon analysis of Fig. \ref{fig:fullcoo}, it can be observed almost every topic has a co-occurrence with one-another.
This is presented by the existence of interconnecting edges between almost each and every node.
There were only 6 pairs where a co-occurrence could not be observed.
Out of these 6, 5 had one of the two least significant topics as one of the topics in the pair. These topics were \textit{Other things to worry about / Other diseases} and \textit{Curing 1st case in Sri Lanka}.
Furthermore, in general, the less frequent topics had a reduced level of co-occurrence compared to their more popular counterparts, in terms of the number of sources the co-occurrence occurred.
The rationale behind this deduction is that due to the upper right section of the graph showing a fairly lighter colour while the upper left section showing a fairly darker colour. This was due to the cumulative colours of the weighted edges.
Through such observations, another possible deduction would be that the more frequent topics were common among the majority of the sources, which is a predictable outcome.
However, the interconnections of least frequent topics with nearly all other topics would imply that certain sources posted content on a wide array of topics.
It may be possible to infer further that these sources in question were in the control of individuals who were more active on social media.

\begin{figure*}
\includegraphics[trim={0 5cm 0 5cm},width=0.5\textwidth]{figures/circle46coo3.png}
\centering
\caption{Co-occurrence graph of the topic categories based on data sources considering co-occurrences with more than 23 sources}
\label{fig:46coo}
\end{figure*}

Another interesting point that could be observed as shown in Fig. \ref{fig:46coo}, was that when the edges were filtered to contain only weights of 23 and above, i.e. having a co-occurrence between 23 sources and above, it can be observed that topics such as \textit{Other political parties / Politicians} and \textit{Donations / Helping others / Needy} which have a higher normalised post count, seem to have a lesser co-occurrence than certain topics such as \textit{Irresponsible behaviour} that have a lower normalised post count.
This would imply that certain individuals or groups are more focused on posting content related to politics compared to the majority of the sources considered. Thus, this brings to light that certain individuals would even use a world-pandemic situation to further their own political agenda.

\subsection{Support shown for Topics}
To get an understanding of how the overall populace reacted to the various topics, an analysis was done on sources that that either supported or criticised in posts relevant to the said topics.
This was done by selecting a topic and then counting the number of negative or positive reactions among the sources. Afterwards, a score was devised for each topic, where if a source supported the topics the score rose by 1, if a source criticised a topic the score fell by 1, or else the score remained the same. This is presented by \eqref{eq:freq}, where \textit{a$_{k}^{i}$} depicts the score of the \textit{i\textsuperscript{th}} person for topic \textit{k} and \textit{A$_{k}$} depicts the total score for the \textit{k\textsuperscript{th}} topic.
The overall results of this analysis can be seen in Fig. \ref{fig:svst} where the topics were arranged based on the score they received.

\begin{equation}
  A_{k}=\sum_{i=1}^{50}a_{k}^{i}= \begin{cases}
    +1 & \text{Supported}.\\
    -1 & \text{Criticised}.\\
    0 & \text{Neither / Both}.\\
  \end{cases}
  \label{eq:sup}
\end{equation}

\begin{figure*}
\includegraphics[trim={0 3cm 0 3cm}, width=\textwidth]{figures/SvsT3.png}
\caption{The overall support for each topic category}
\label{fig:svst}
\end{figure*}

It could be observed that the most support in Facebook was for local productions as well as those professions that played an active role to mitigate the effects of the COVID-19 virus outbreak in Sri Lanka. Namely, these professions were that of the medical staff as well as the armed forces.
Although showing support to professions that were the vanguard against COVID-19 outbreak was a common trend even in countries other than Sri Lanka, this usually referred to the medical staff and other essential service providers.
Sri Lanka stood out due to the fact that mobilised its armed forces to play an active role in this crisis. Furthermore, coupled with the other most supported topic which was local production, this brings to light the nationalistic views of the people.

Following such topics were posts related to \textit{Donations / Helping others / Needy}. The support for such actions comes at no surprise. However, following even that in relevance to the support score, were certain topics related to politics such as postponing the election and government actions to curb the COVID-19 outbreak. However, these two topics were in opposition to one another.
Due to the power shift after the 2019 presidential election in Sri Lanka, it could be said that the current government was against \textit{Postponing election}.
However, it was supported publicly.
As the other decisions by the Government to control the spread of the virus are supported as well, the reason for the statement regarding the contradiction would be lucid if taking all the actions of the government as a whole.
However, there were only 5 sources that truly supported all posts relating to both of these topics.
Thus, these sources may have seen the efforts of the government in a positive light while also having a mindset of stopping any situations that were counterproductive to the actions taken thus far to curb the virus.
However, the remaining sources may have posted content related to such topics while being under some political influence.

Looking at the opposite end of the spectrum, the most criticised topic out of the sources considered was \textit{Irresponsible behaviour}. Such a negative response was likely due to certain actions by certain subsets of the population that completely undid all efforts of the country such as evading quarantine as well as crowding. Following this topic was \textit{Deficient / Overpriced products}, which sparked such a negative response due to the apparent unethical behaviour of certain companies utilising this crisis to rake in a large profit. The remaining topics either had a mixture of reactions or the content posted were primarily informative rather than showing any support or criticism.

\section{Discussion}

Although the manual data collection process severely limited the number of sources that were considered for the research, a notable advantage was that image posts as well as posts that indirectly related to the COVID-19 outbreak could also be identified.
Assuming the standard automated data collection process is by a search via a query, such posts would be missed, especially when there are no clearly discernible keywords to identify them.
The importance of this point is clearly observable when considering the results of the analysis regarding topic significance.
To elaborate, the topic \textit{Humour / Entertainment / Online activities / Boredom relief} possessed the greatest significance out of all the topics.
However, a considerable number of posts related to this topic such as \textit{memes} or those having no specific keywords to identify them would have otherwise been missed if not for the manual collection process.
Thus, the value of the methodology that was used to collect data is clear, as if such posts were missed, the actual topic with the greatest significance would not have earned its true rank.

From the derived results, it was possible to observe a variety of behaviours in the sources considered. These behaviours were not only positive but also negative. Examples for negative behaviours were political polarisation, as well as unnecessary outrage and overreactions to certain incidents.
However, curtailing such detrimental behaviours as well as imposing proper regulations should be the task of the government and other relevant authorities.
It would also be possible to utilise the general public opinions regarding government policies and preparations to overcome the COVID-19 threat that were observed in this analysis to support such regulatory measures as well.
To a certain extent, numerous issues and difficulties that people faced during the disaster situation were also identified during the analysis.
This also gives some opinions on general circumstances that could occur in an any given disaster situation in a developing country. In addition, observations have shown that Facebook has also been used as a method of sharing valuable information as well as advice to raise public awareness and mitigate the pandemic.

A notable limitation of this research would be its limited amount of sources. Although it could be called sufficient for an exploratory study, the fact that it would not truly capture the actual behaviour of the total user-base in Facebook cannot be denied. As this method was employed due to the limitations of extracting data from Facebook, other social media platforms where it would possible to extract data by queries may offer means to perform a more rigorous study. In addition, it should also be possible to combine multiple of such sources to create a composite data-set which could be used to properly represent the Sri Lankan populace. Although granted that utilising such methods would lead to ignoring image-based social media messages, which is an advantage of the current study. However, a sufficiently large data-set possessing text-based content would also allow the usage of Natural Language Processing (NLP) techniques to perform a much more informative analysis. In addition, another major limitation of this research would be the constant fluctuation of Facebook content as the number of reactions, comments and shares could change by the second.
Although to mitigate such issues the data extraction process was initiated approximately a week after the latter-most date considered for creating content, it does not grantee that the data sources would not change at a later date.
Furthermore, it is also possible to delete or hide posts. This could potentially lead to considerably more severe conflicts between what was recorded and what is currently observable.

\section{Conclusion}
This article discusses the reaction of the Sri Lankan Facebook user-base to the COVID 19 outbreak. Sri Lanka, which is a developing country in South-Asia, has approximately 70\% Facebook users out of its social media users.
Thus, it can be claimed that this study could represent the majority of the general populace on the island.
The study was conducted using over 2300 posts from 50 sources on Facebook, to observe the behaviours that were highlighted during the disaster situation. The data collected was then categorised and subsequently normalised to be subjected to analysis.
Areas such as behavioural patterns, significant topics, as well as the co-occurrence of topics were such analysis performed to generate notable insights.
Ultimately the insights presented by this study could be utilised for reinforcing effective and pragmatic decision making by governments and other relevant authorities. Furthermore, it can also be used to foster regulations and recommendations in information sharing in the context of social media.


\section{Introduction}

In this paper, in order to simplify the expressions, we denote  the $n$th triangular number by
$$T_n=n(n+1)/2$$
and the $n$th generalized pentagonal number by
$$G_n=T_n-T_{\lfloor n/2 \rfloor},$$
for any nonnegative integer $n$.

In \cite{Andrews12}, G.E. Andrews and M. Merca considered Euler's pentagonal number theorem
\begin{equation}\label{eq:1}
\sum_{n=0}^{\infty} (-1)^{T_n} q^{G_n} = (q;q)_\infty
\end{equation}
and obtained the following truncated version:
\begin{equation}\label{eq:2}
\frac{1}{(q;q)_\infty} \sum_{n=0}^{2k-1} (-1)^{T_n} q^{G_n}
= 1+(-1)^{k-1} \sum_{n=1}^{\infty} \frac{q^{\binom{k}{2}+(k+1)n}}{(q;q)_n}
\begin{bmatrix}
n-1\\k-1
\end{bmatrix},
\end{equation}
where
\begin{align*}
& (a;q)_n = \begin{cases}
1, & \text{for $n=0$,}\\
(1-a)(1-aq)\cdots(1-aq^{n-1}), &\text{for $n>0$,}
\end{cases}\\
& (a;q)_\infty = \lim_{n\to\infty} (a;q)_n,\\
&
\begin{bmatrix}
n\\k
\end{bmatrix}
=
\begin{bmatrix}
n\\k
\end{bmatrix}_{q}
=
\begin{cases}
0, & \text{ if $k<0$ or $k>n$}\\
\dfrac{(q;q)_n}{(q;q)_k(q;q)_{n-k}}, &\text{otherwise.}
\end{cases}
\end{align*}
From \eqref{eq:2}, they derived an infinite family of inequalities for Euler's partition function $p(n)$:
\begin{equation}\label{eq:3}
(-1)^{k-1}\sum_{j=0}^{2k-1} (-1)^{T_j} p(n-G_j) \geqslant 0,
\end{equation}
with strict inequality if $n>G_{2k}$.

Inspired by these results, V.J.W. Guo and J. Zeng \cite{Guo} considered two other classical theta identities, usually attributed to
Gauss \cite[p.23, eqs. (2.2.12) and (2.2.13)]{Andrews76}, i.e.,
\begin{equation}\label{eq:4}
1+2\sum_{n=1}^{\infty} (-q)^{n^2} = \frac {(q;q)_\infty} {(-q;q)_\infty},
\end{equation}
\begin{equation}\label{eq:5}
\sum_{n=0}^{\infty} (-q)^{T_j} = \frac {(q^2;q^2)_\infty} {(-q;q^2)_\infty},
\end{equation}
and proved new truncated forms of these:
\allowdisplaybreaks{
	\begin{align}
	& \frac{(-q;q)_{\infty}}{(q;q)_{\infty}} \left(1+2\sum_{j=1}^{k} (-q)^{j^2} \right) \label{eq:6}\\
	& \qquad\qquad = 1+(-1)^k \sum_{n=k+1}^{\infty} \frac{(-q;q)_k (-1;q)_{n-k} q^{(k+1)n}}{(q;q)_n}
	\begin{bmatrix}
	n-1\\k-1
	\end{bmatrix}, \notag \\
	& \frac{(-q;q^2)_{\infty}}{(q^2;q^2)_{\infty}} \sum_{j=0}^{2k-1} (-q)^{T_j} \label{eq:7}\\
	& \qquad\qquad = 1+(-1)^k \sum_{n=k}^{\infty} \frac{(-q;q^2)_k (-q;q^2)_{n-k} q^{2(k+1)n-k}}{(q^2;q^2)_n}
	\begin{bmatrix}
	n-1\\k-1
	\end{bmatrix}_{q^2}, \notag
	\end{align}
}respectively.
As an immediate consequence of \eqref{eq:6}, they deduced an infinite family of inequalities for the number of overpartitions of $n$, $\overline{p}(n)$:
\begin{equation}\label{eq:8}
(-1)^k \left(\overline{p}(n) +2 \sum_{j=1}^{k} (-1)^j \overline{p}(n-j^2)\right) \geqslant 0,
\end{equation}
with strict inequality if $n\geqslant (k+1)^2$. Similarly, from \eqref{eq:7} Guo and Zeng obtained an infinite family of inequalities for $pod(n)$, the  number of partitions of $n$ in which odd parts are not repeated:
\begin{equation}\label{eq:9}
(-1)^{k-1} \sum_{j=0}^{2k-1} (-1)^{T_j} pod \left( n-T_j \right)  \geqslant 0,
\end{equation}
with strict inequality if $n\geqslant (2k+1)k$.

Very recently, Andrews and Merca \cite{Andrews17} have revealed that \eqref{eq:2}, \eqref{eq:6} and \eqref{eq:7}
are essentially corollaries of the Rogers-Fine identity  \cite[p.15]{Rogers}:
\begin{equation*}
\sum_{n=0}^{\infty} \frac{(\alpha;q)_n \tau^n }{(\beta;q)_n}
= \sum_{n=0}^{\infty} \frac{(\alpha;q)_n (\alpha\tau q/\beta;q)_n \beta^n \tau^n q^{n^2-n}(1-\alpha\tau q^{2n})}{(\beta;q)_n (\tau;q)_{n+1}}.
\end{equation*}
A new infinite family of inequalities for Euler's partition function $p(n)$ is proved in this context:
if at least one of $n$ and $k$ is odd,
\begin{equation}\label{eq:1.10}
(-1)^{k-1} \sum_{j=0}^{2k-1} (-1)^{T_j}  p(n-T_j)  \geqslant 0.
\end{equation}

Other recent investigations on the truncated theta series  can be found in several papers by Chan, Ho and Mao \cite{Chan},
Chern \cite{Chern}, He, Ji and Zang \cite{He},   Kolitsch \cite{Kolitsch},  Kolitsch and Burnette \cite{KolitschB}, Mao \cite{Mao,Mao17}, Merca \cite{Merca16},
Merca, Wang and Yee \cite{MWY},
Wang and Yee \cite{WY1,WY2}, and Yee \cite{Yee}.

In this paper, motivated by these results, we shall provide similar families of inequalities for the partition function $Q(n)$ which counts the number of partition of $n$ into distinct parts. We consider $Q(0)=1$ and $Q(n)=0$ for all negative $n$.

By the truncated pentagonal number theorem \eqref{eq:2}, with $q$ replaced by $q^2$, we easily deduce the following result.

\begin{theorem}\label{Th:1.1}
	For a positive integer $k$, we have
	\begin{align*}
	& (-q;q)_\infty \sum_{n=0}^{2k-1} (-1)^{T_n} q^{2G_n}\\
	& \qquad 	= \frac{(q^2;q^2)_\infty}{(q;q^2)_\infty}+(-1)^{k-1} \frac{(q^2;q^2)_\infty}{(q;q^2)_\infty} \sum_{n=1}^{\infty} \frac{q^{k(k-1)+2(k+1)n}}{(q^2;q^2)_n}
	\begin{bmatrix}
	n-1\\k-1
	\end{bmatrix}_{q^2}.
	\end{align*}
\end{theorem}

An immediate consequence owing to the positivity of the sum on the right is given by the following inequality  where $\delta_{i,j}$ is the Kronecker delta function.

\begin{corollary}\label{Cor:1.2}
	For $m,n\geqslant 0$, $k\geqslant 1$,
	$$(-1)^{k-1} \left( \sum_{j=0}^{2k-1} (-1)^{T_j} Q\left(n-2G_j\right) - \delta_{n,T_m} \right)  \geqslant 0,$$
	with strict inequality if and only if  $n\geqslant 2G_{2k}$.
\end{corollary}

As we can see in \cite[Corollary 4.5]{Merca}, the recurrence relation given by the limiting case $k\to\infty$ of this corollary is known:
\begin{equation}\label{rec:1}
\sum_{j=0}^\infty (-1)^{T_j} Q(n-2G_j)
=\begin{cases}
1, & \text{if $n=T_m$, $m\in\mathbb{N}_0$,}\\
0, & \text{otherwise}.
\end{cases}
\end{equation}
The number of terms in this recurrence relation is about $\sqrt{4n/3}$.
By this recurrence relation, we can deduce the following parity result.

\begin{corollary}\label{Cor:1.3}
	Let $n$ be a positive integer.
	The number of representations of $n$ as the sum of a generalized pentagonal number and a twice generalized pentagonal number is odd if and only if $n$ is a triangular number.
\end{corollary}

In analogy with \eqref{eq:6}, we have a stronger result than Theorem \ref{Th:1.1}.

\begin{theorem}\label{Th:1.4}
	For the positive integers $k$ and $r$, we have:
	\begin{align*}
	& (-q;q)_\infty \left( 1+2\sum_{j=1}^k (-1)^j q^{r\cdot j^2} \right)\\
	& \quad = \frac{(-q;q)_\infty (q^r;q^r)_\infty}{(-q^r;q^r)_\infty} + 2(-1)^k q^{r(k+1)^2} \frac{(q^r;q^{2r})_\infty}{(q;q^2)_\infty}
	\sum_{j=0}^{\infty}\frac{q^{(2k+2j+3)rj}}{(q^{2r};q^{2r})_j(q^r;q^{2r})_{k+j+1}}.
	\end{align*}
\end{theorem}

Considering Euler's pentagonal number theorem \eqref{eq:1} and the following two identities
\begin{align*}
& \frac{(-q;q)_\infty (q^2;q^2)_\infty}{(-q^2;q^2)_\infty} =  \sum\limits_{j=0}^\infty (-1)^{T_{\lfloor j/2 \rfloor}} q^{G_j},\\
& \frac{(-q;q)_\infty (q^3;q^3)_\infty}{(-q^3;q^3)_\infty} = \sum\limits_{j=0}^\infty q^{G_j},
\end{align*}
the positivity of
$$
\sum_{j=0}^{\infty}\frac{q^{(2k+2j+3)rj}}{(q^{2r};q^{2r})_j(q^r;q^{2r})_{k+j+1}}
$$
allows us to deduce the following families of inequalities for the partition function $Q(n)$.

\begin{corollary}\label{cor:1.5}
	For $m,n\geqslant 0$, $k\geqslant 1$,
	\begin{enumerate}
		\item[a)] $\displaystyle{ (-1)^{k}\left( Q(n)+2 \sum_{j=1}^{k} (-1)^j Q(n-j^2)-(-1)^{T_m} \delta_{n,G_m}\right) \geqslant 0, }$
		\item[] with strict inequality if and only if  $n\geqslant (k+1)^2$.
		\item[b)] $\displaystyle{(-1)^{k}\left( Q(n)+2 \sum_{j=1}^{k} (-1)^j Q(n-2j^2)-(-1)^{T_{\lfloor m/2 \rfloor}}\delta_{n,G_m}\right) \geqslant 0},$
		\item[] with strict inequality if and only if  $n\geqslant 2(k+1)^2$.
		\item[c)] $\displaystyle{(-1)^{k}\left( Q(n)+2 \sum_{j=1}^{k} (-1)^j Q(n-3j^2)-\delta_{n,G_m}\right) \geqslant 0},$
		\item[] with strict inequality if and only if  $n\geqslant 3(k+1)^2$.
	\end{enumerate}
\end{corollary}

There is a substantial amount of numerical evidence to conjecture that the sums in this corollary satisfy the following inequalities.

\begin{conjecture}\label{C:1}
	For $m,n\geqslant 0$, $k\geqslant 1$,
	\begin{align*}
	& (-1)^{k}\left( Q(n)+2 \sum_{j=1}^{k} (-1)^j Q(n-j^2)-(-1)^{T_m} \delta_{n,G_m}\right) \\
	& \qquad \geqslant (-1)^{k}\left( Q(n)+2 \sum_{j=1}^{k} (-1)^j Q(n-2j^2)-(-1)^{T_{\lfloor m/2 \rfloor}}\delta_{n,G_m}\right) \\
	& \qquad \geqslant (-1)^{k}\left( Q(n)+2 \sum_{j=1}^{k} (-1)^j Q(n-3j^2)-\delta_{n,G_m}\right).
	\end{align*}
\end{conjecture}

As we can see in \cite[Corollary 4.6]{Merca}, the recurrence relation given by the limiting case $k\to\infty$ of Corollary \ref{cor:1.5}.a) is known:
\begin{equation}\label{rec:2}
Q(n)+2 \sum_{j=1}^{\infty} (-1)^j Q(n-j^2)
=\begin{cases}
(-1)^{T_m}, & \text{if $n=G_m$, $m\in\mathbb{N}_0$,}\\
0, & \text{otherwise}.
\end{cases}
\end{equation}
The number of terms in this recurrence relation is about $\sqrt{n}$.

The limiting case $k\to\infty$ of Corollary \ref{cor:1.5}.b) gives a new linear recurrence relation more efficient than \eqref{rec:2}:
\begin{equation}\label{rec:3}
Q(n)+2 \sum_{j=1}^{\infty} (-1)^j Q(n-2j^2)
=\begin{cases}
(-1)^{T_{\lfloor m/2 \rfloor}}, & \text{if $n=G_m$, $m\in\mathbb{N}_0$,}\\
0, & \text{otherwise}.
\end{cases}
\end{equation}
We see that the number of terms in this recurrence relation is about $\sqrt{n/2}$.

Corollary \ref{cor:1.5}.c) provides a new and extremely efficient algorithm for computing the partition function $Q(n)$:
\begin{equation}\label{rec:4}
Q(n)+2 \sum_{j=1}^{\infty} (-1)^j Q(n-3j^2)
=\begin{cases}
1, & \text{if $n=G_m$, $m\in\mathbb{N}_0$,}\\
0, & \text{otherwise}.
\end{cases}
\end{equation}
The number of terms in this recurrence relation is about $\sqrt{n/3}$.

As consequence of the recurrence relations \eqref{rec:2}-\eqref{rec:4}, we remark the following parity result.

\begin{corollary}\label{cor:1.6}
	Let $n$ be a positive integer.
	\begin{enumerate}
		\item[a)] 	The number of representations of $n$ as the sum of a generalized pentagonal number and a square number is odd if and only if $n$ is a generalized pentagonal number.
		\item[b)] 	The number of representations of $n$ as the sum of a generalized pentagonal number and a twice square number is odd if and only if $n$ is a generalized pentagonal number.
		\item[c)] 	The number of representations of $n$ as the sum of a generalized pentagonal number and a thrice square number is odd if and only if $n$ is a generalized pentagonal number.
	\end{enumerate}
\end{corollary}

Theorems \ref{Th:1.1} and \ref{Th:1.4} are good reasons to look for new infinite families of linear inequalities for the partition function $Q(n)$.
The rest of this paper is organized as follows. We will first prove Theorem \ref{Th:1.4} in Section \ref{S2}. In Section \ref{S3}, we provide combinatorial interpretations for Corollaries \ref{Cor:1.2} and \ref{cor:1.5}. Two infinite families of linear inequalities for $Q(n)$ which we have experimentally discovered are introduced in Section \ref{S4}.

\section{Proof of Theorems \ref{Th:1.4}}\label{S2}

The result follows directly from

\begin{lemma}\label{L:2.1}
	For a positive integer $k$,
	$$\sum_{j=0}^\infty (-1)^j q^{j^2+2j(k+1)} = (q^{2k+3};q^2)_\infty \sum_{j=0}^\infty \frac{q^{j(2j+2k+3)}}{(q^2;q^2)_j(q^{2k+3};q^2)_j}.$$
\end{lemma}

\begin{proof}
	To prove the lemma, we consider the second identity by Heine's transformation  of ${_{2}}\phi_{1}$ series \cite[(III.2)]{gasper}, namely
	$$
	{_{2}}\phi_{1}\bigg(\begin{matrix}a, b\\ c\end{matrix}\,;q,z\bigg)
	= \frac{(c/b;q)_\infty(bz;q)_\infty}{(c;q)_\infty(z;q)_\infty}
	{_{2}}\phi_{1}\bigg(\begin{matrix}abz/c, b\\ bz\end{matrix}\,;q,c/b\bigg).
	$$
	We have
	\begin{align*}
	&\sum_{j=0}^\infty (-1)^j q^{j^2+2j(k+1)}\\
	&\qquad = \lim_{\tau\to 0} \sum_{j=0}^\infty \frac{(q^{2k+3}/\tau;q^2)_j}{(\tau;q^2)_j}\tau^j\\
	&\qquad = \lim_{\tau\to 0} {_{2}}\phi_{1}\bigg(\begin{matrix}q^{2},  q^{2k+3}/\tau\\ \tau\end{matrix}\,;q^{2},\tau\bigg)\\
	&\qquad = \lim_{\tau\to 0} \frac{(\tau^2/q^{2k+3};q^2)_\infty(q^{2k+3};q^2)_\infty}{(\tau;q^2)^2_\infty} {_{2}}\phi_{1}\bigg(\begin{matrix}q^{2k+5}/\tau,  q^{2k+3}/\tau\\ q^{2k+3}\end{matrix}\,;q^{2},\tau^2/q^{2k+3}\bigg)\\
	&\qquad = (q^{2k+3};q^2)_\infty \lim_{\tau\to 0}  \sum_{j=0}^\infty \frac{(q^{2k+5}/\tau;q^2)_j(q^{2k+3}/\tau;q^2)_j}{(q^2;q^2)_j(q^{2k+3};q^2)_j}\left( \frac{\tau^2}{q^{2k+3}}\right)^j\\
	&\qquad = (q^{2k+3};q^2)_\infty \lim_{\tau\to 0} \sum_{j=0}^\infty \frac{(-1)^j q^{j(j+1)}(q^{2k+3}/\tau;q^2)_j}{(q^2;q^2)_j(q^{2k+3};q^2)_j}\tau^j\\
	&\qquad = (q^{2k+3};q^2)_\infty \sum_{j=0}^\infty \frac{q^{j(2j+2k+3)}}{(q^2;q^2)_j(q^{2k+3};q^2)_j}
	\end{align*}
	and the proof of this lemma is finished.
\end{proof}

With $q$ replaced by $q^r$, the Gauss identity \eqref{eq:4} becomes
$$1+2\sum_{n=1}^k (-1)^n q^{rn^2} = \frac{(q^r;q^r)_\infty}{(-q^r;q^r)_\infty}-2\sum_{n=k+1}^\infty (-1)^n q^{rn^2}.$$
Multiplying both sides of this identity by $(-q;q)_\infty$, we get
\allowdisplaybreaks{
	\begin{align*}
	&(-q;q)_\infty \left( 1+2\sum_{j=1}^k (-1)^j q^{rj^2} \right) \\
	&\quad = \frac{(-q;q)_\infty(q^r;q^r)_\infty}{(-q^r;q^r)_\infty} - 2(-q;q)_\infty \sum_{j=k+1}^{\infty} (-1)^j q^{rj^2}\\
	&\quad = \frac{(-q;q)_\infty(q^r;q^r)_\infty}{(-q^r;q^r)_\infty} + 2(-1)^k  \frac{q^{r(k+1)^2}}{(q;q^2)_\infty} \sum_{j=0}^{\infty} (-1)^j q^{rj^2+2rj(k+1)}\\

	&\quad =\frac{(-q;q)_\infty(q^r;q^r)_\infty}{(-q^r;q^r)_\infty} \\
	&\qquad + 2(-1)^k q^{r(k+1)^2} \frac{(q^{r(2k+3)};q^{2r})_\infty}{(q;q^2)_{\infty}}\sum_{j=0}^{\infty}\frac{q^{2rj^2+(2k+3)rj}}{(q^{2r};q^{2r})_j(q^{r(2k+3)};q^{2r})_j}
	\tag{By Lemma \ref{L:2.1}, with $q$ replaced by $q^2$.}\\
	&\quad =\frac{(-q;q)_\infty(q^r;q^r)_\infty}{(-q^r;q^r)_\infty}\\
	&\qquad + 2(-1)^k q^{r(k+1)^2} \frac{(q^{r};q^{2r})_\infty}{(q;q^2)_{\infty}(q^r;q^{2r})_{k+1}}\sum_{j=0}^{\infty}\frac{q^{(2k+2j+3)rj}}{(q^{2r};q^{2r})_j(q^{r(2k+3)};q^{2r})_j}\\
	&\quad =\frac{(-q;q)_\infty(q^r;q^r)_\infty}{(-q^r;q^r)_\infty} + 2(-1)^k q^{(k+1)^2}
	\frac{(q^{r};q^{2r})_\infty}{(q;q^2)_{\infty}} \sum_{j=0}^{\infty}\frac{q^{(2k+2j+3)rj}}{(q^{2r};q^{2r})_j(q^r;q^{2r})_{k+j+1}}
	\end{align*}
}
and the proof is finished.

\section{Combinatorial interpretations}
\label{S3}

Regarding the inequality \eqref{eq:3}, we recall the following
partition theoretic interpretation given by Andrews and Merca \cite[Theorem 1]{Andrews12}:
\begin{equation*}
(-1)^{k-1}\sum_{j=0}^{2k-1} (-1)^{T_j} p(n-G_j) = M_k(n),
\end{equation*}
where $M_k(n)$ is the number of partitions of $n$ in which
$k$ is the least integer that is not a part and there are
more parts $>k$ than there are $<k$. In \cite{Yee} has
given a combinatorial proof of this result. Considering the generating function for $M_k(n)$, i.e.,
$$\sum_{n=0}^{\infty} M_k(n) q^n = \sum_{n=1}^{\infty} \frac{q^{\binom{k}{2}+(k+1)n}}{(q;q)_n}
\begin{bmatrix}
n-1\\k-1
\end{bmatrix},
$$
Theorem \ref{Th:1.1} can be written as:
\begin{align*}
(-q;q)_\infty \sum_{n=0}^{2k-1} (-1)^{T_n} q^{2G_n}- \frac{(q^2;q^2)_\infty}{(q;q^2)_\infty}
= (-1)^{k-1} \frac{(q^2;q^2)_\infty}{(q;q^2)_\infty} \sum_{n=0}^{\infty} M_k(n) q^{2n}
\end{align*}
or
\begin{align*}
& \left( \sum_{n=0}^\infty Q(n) q^n\right)  \left( \sum_{n=0}^{2k-1} (-1)^{T_n} q^{2G_n}\right) - \sum_{n=0}^\infty q^{T_n} \\
& \qquad\qquad\qquad\qquad= (-1)^{k-1} \left( \sum_{n=0}^\infty q^{T_n}\right) \left(  \sum_{n=0}^{\infty} M_k(n) q^{2n}\right),
\end{align*}
where we have invoked the theta identity \eqref{eq:5}.  In this way, we derive the following identity.

\begin{corollary}\label{cor:3.1}
	For $m,n\geqslant 0$, $k\geqslant 1$,
	$$(-1)^{k-1} \left( \sum_{j=0}^{2k-1} (-1)^{T_j} Q\left(n-2G_j\right) - \delta_{n,T_m} \right)
	=\sum_{j=0}^\infty M_k\left(n/2-T_j/2 \right),
	$$
	where $M_k(x)=0$ if $x$ is not an integer.
\end{corollary}

More explicitly, the right hand side of this identity can be rewritten as:
$$\sum_{j=0}^\infty M_k\left(n-T_j/2 \right)
=\sum_{j=-\infty}^\infty M_k\big(n-j(4j-1) \big),
$$
and
$$\sum_{j=0}^\infty M_k\big((2n+1)/2-T_j/2 \big)
=\sum_{j=-\infty}^\infty M_k\big(n-j(4j-3) \big).
$$

Very recently, Merca, Wang and Yee \cite{MWY} provided the following partition-theoretic interpretation of the sum in Theorem \ref{Th:1.4}.

\begin{theorem} \label{Th:3.2}
	For a fixed $k\geqslant 1$,
	\begin{equation*}
	\sum_{n=0}^{\infty} {M_{o,k}}(n) q^n =q^{(k+1)^2} \sum_{j=0}^{\infty}\frac{q^{(2k+2j+3)j}}{(q^2;q^2)_j(q;q^2)_{k+j+1}},
	\end{equation*}
	where ${M_{o,k}}(n)$ counts partitions of $n$ into odd parts such that all odd numbers less than or equal to $2k+1$ occur as parts at least once and the parts below the $(k+2)$-Durfee rectangle in the $2$-modular graph are strictly less than the width of the rectangle.
\end{theorem}

For $r>1$, we denote by  $Q_{r}(n)$ the number of partitions of $n$ into distinct parts not congruent to $0$ modulo $r$. The generating function of $Q_{r}(n)$ is given by
$$\sum_{n=0}^\infty Q_r(n) q^n = \frac{(q^r;q^{2r})_\infty}{(q;q^2)_\infty}.$$
Considering Theorems \ref{Th:1.4} and \ref{Th:3.2}, we immediately deduced the following partition-theoretic interpretation of Corollary \ref{cor:1.5}.

\begin{corollary}\label{cor:3.2}
	For $m,n\geqslant 0$, $k\geqslant 1$,
	\begin{enumerate}
		\item[a)] $\displaystyle{ (-1)^{k}\left( Q(n)+2 \sum_{j=1}^{k} (-1)^j Q(n-j^2)-(-1)^{T_m} \delta_{n,G_m}\right) = 2M_{o,k}(n) },$
		\item[b)] $\displaystyle{ (-1)^{k}\left( Q(n)+2 \sum_{j=1}^{k} (-1)^j Q(n-2j^2)-(-1)^{T_{\lfloor m/2 \rfloor}}\delta_{n,G_m}\right)  }$
		\item[] $\displaystyle{\qquad = 2\sum_{j=0}^{\lfloor n/2 \rfloor} M_{o,k}(j) Q_{2}(n-2j)},$

		\item[c)] $\displaystyle{ (-1)^{k}\left( Q(n)+2 \sum_{j=1}^{k} (-1)^j Q(n-3j^2)-\delta_{n,G_m}\right)  }$
		\item[] $\displaystyle{\qquad = 2\sum_{j=0}^{\lfloor n/3 \rfloor} M_{o,k}(j) Q_{3}(n-3j)}.$

	\end{enumerate}

\end{corollary}

We can rewrite Conjecture \ref{C:1} in the following equivalent form.

\begin{conjecture}\label{Cj:2}
	For $n\geqslant 0$, $k\geqslant 1$,
	$$\sum_{j=0}^{\lfloor n/3 \rfloor} M_{o,k}(j) Q_{3}(n-3j) \leqslant
	\sum_{j=0}^{\lfloor n/2 \rfloor} M_{o,k}(j) Q_{2}(n-2j) \leqslant
	M_{o,k}(n).$$
\end{conjecture}

Related to this conjecture, we remark that $Q_3(n)$ counts the partitions of $n$ into odd parts in which no part appears more than twice. More details about this combinatorial interpretation can be found in \cite{Alladi,Andrews00}. On the other hand, $Q_2(n)$ counts the partitions of $n$ into distinct odd parts. For $n\geqslant 0$, it is clear that
$$Q_3(n)\geqslant Q_2(n).$$
This inequality makes Conjecture \ref{Cj:2} more interesting.

Combinatorial proofs of Corollaries \ref{cor:3.1} and \ref{cor:3.2} would be very interesting.

\section{Two open problems}
\label{S4}

Related to the sum in the right hand side  of the truncated pentagonal number theorem \eqref{eq:2}, we remark
that there is a substantial amount of numerical evidence to state
the following conjecture.

\begin{conjecture}
	For $k\geqslant 1$, the theta series
	$$(-q;q)_\infty \sum_{n=0}^\infty (-1)^{T_n} q^{G_{n+2k}} = (q^2;q^2)_\infty \sum_{n=1}^{\infty} \frac{q^{\binom{k}{2}+(k+1)n}}{(q;q)_n}
	\begin{bmatrix}
	n-1\\k-1
	\end{bmatrix}$$
	has non-negative coefficients.
\end{conjecture}

Assuming this conjecture, we derive the following family of linear inequalities.

\begin{inequality}\label{I:4.1}
	For $m,n\geqslant 0$, $k\geqslant 1$,
	$$(-1)^{k-1} \left( \sum_{j=0}^{2k-1} (-1)^{T_j} Q\left(n-G_j\right) - (-1)^{T_m}\delta_{n,2G_m} \right) \geqslant 0$$
	with strict inequality if and only  if $n\geqslant G_{2k}$.
\end{inequality}

We notice that this inequality is equivalent with: for $n\geqslant 0$, $k\geqslant 1$,
$$\sum_{j=0}^\infty (-1)^{T_j} M_k(n-2G_j) \geqslant 0$$
with strict inequality if and only  if $n\geqslant G_{2k}$.

In \cite{Andrews17}, Andrews and Merca provide the following revision of \eqref{eq:7}:
\begin{align*}
& \frac{(-q;q^2)_\infty}{(q^2;q^2)_\infty} \sum_{j=0}^{2k-1}(-q)^{T_j}  \\
& \qquad = 1 - (-1)^k \frac{(-q;q^2)_k}{(q^2;q^2)_{k-1}}
\sum_{j=0}^{\infty} \frac{q^{k(2j+2k+1)}(-q^{2j+2k+3};q^2)_{\infty}}{(q^{2k+2j+2};q^2)_{\infty}},
\end{align*}
with
$$\sum_{n=0}^\infty MP_k(n) q^n = \frac{(-q;q^2)_k}{(q^2;q^2)_{k-1}}
\sum_{j=0}^{\infty} \frac{q^{k(2j+2k+1)}(-q^{2j+2k+3};q^2)_{\infty}}{(q^{2k+2j+2};q^2)_{\infty}},$$
where $MPk(n)$ is the number of partitions of $n$ in which the first part larger than $2k-1$ is odd and appears exactly $k$ times; all other odd parts appear at most once. A purely combinatorial proof of this result can be found in \cite{Ballantine}.
Related to the sum in the right hand side  of these identities, we remark
the following conjecture.

\begin{conjecture}
	For $k\geqslant 1$, the theta series
	$$(-q;q)_\infty \sum_{n=0}^\infty (-1)^{T_n} q^{T_{n+2k}} = (q^4;q^4)_\infty \frac{(-q;q^2)_k}{(q^2;q^2)_{k-1}}
	\sum_{j=0}^{\infty} \frac{q^{k(2j+2k+1)}(-q^{2j+2k+3};q^2)_{\infty}}{(q^{2k+2j+2};q^2)_{\infty}}$$
	has non-negative coefficients.
\end{conjecture}

Assuming this conjecture, we derive a new infinity family of linear inequalities.

\begin{inequality}\label{I:4.2}
	For $m,n\geqslant 0$, $k\geqslant 1$,
	$$(-1)^{k-1} \left( \sum_{j=0}^{2k-1} (-1)^{T_j} Q\left(n-T_j\right) - (-1)^{T_m}\cdot \delta_{n,4G_m} \right)  \geqslant 0,$$
	with strict inequality if and only if  $n\geqslant T_{2k}$.
\end{inequality}

We remark that this inequality can be rewritten in terms of $MP_k(n)$ as follows: for $n\geqslant 0$, $k\geqslant 1$,
$$\sum_{j=0}^\infty (-1)^{T_j} MP_{k} (n-4G_j) \geqslant 0,$$
with strict inequality if and only if  $n\geqslant T_{2k}$.

The limiting case $k\to\infty$ of Identities \ref{I:4.1} and \ref{I:4.2} give the following linear recurrence relations:
\begin{align*}
&\sum_{j=0}^\infty (-1)^{T_j} Q(n-G_j)
=\begin{cases}
(-1)^{T_{m}}, & \text{if $n=2G_m$, $m\in\mathbb{N}_0$,}\\
0, & \text{otherwise,}
\end{cases}\\
&\sum_{j=0}^\infty (-1)^{T_j} Q(n-T_j)
=\begin{cases}
(-1)^{T_{m}}, & \text{if $n=4G_m$, $m\in\mathbb{N}_0$,}\\
0, & \text{otherwise.}
\end{cases}
\end{align*}

The effectiveness of these recurrence relations can not be called into  question because the number of terms in each relations is greater than $\sqrt{n/3}$.
As consequences of these recurrence relations, we can derive the following parity results.

\begin{corollary}
	Let $n$ be a positive integer.
	\begin{enumerate}
		\item[a)] The number of representations of $n$ as the sum of two generalized pentagonal numbers is odd if and only if $n$ is a twice generalized pentagonal number.
		\item[b)] The number of representations of $n$ as the sum of a generalized pentagonal number and a triangular number is odd if and only if $n$ is a four times generalized pentagonal number.
	\end{enumerate}
\end{corollary}

Finally, we remark that the linear recurrence relations presented in this paper can be easily derived considering the Jacobi triple product identity.
It is still an open problem to give partition interpretations for our truncated sums in Inequalities \ref{I:4.1} and \ref{I:4.2}.