A Generalization of Placing Identical Items into Identical Bins

A common approach to counting the number of ways to place identical items into identical bins is by casework. In this article, an alternative approach is introduced and robust mathematical formulas are established to calculate the number of ways of placing arbitrary number of identical items into arbitrary number of identical bins. Firstly, single closed formulas for the cases of two and three bins are developed for arbitrary number of items. Secondly, a recursive formula for more than three bins is derived for arbitrary number of items. This recursive formula reduces the number of bins by one in each step until reaching the base case of three bins for which the closed formula derived in this paper can be applied. A Python program is implemented using the derived formulas that can count the number of ways for arbitrary bins and items.

Authors

Institutions

Publication Details

Journal
Pittsburgh Interdisciplinary Mathematics Review
Published
2024-12-06
DOI
https://doi.org/10.5195/pimr.2024.40
Primary Topic
Data Mining Algorithms and Applications
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Generalization of Placing Identical Items into Identical Bins

Annie Wang
Pittsburgh Interdisciplinary Mathematics Review
Data Mining Algorithms and Applications
article

A Generalization of Placing Identical Items into Identical Bins

Annie Wang
article en

Abstract

A common approach to counting the number of ways to place identical items into identical bins is by casework. In this article, an alternative approach is introduced and robust mathematical formulas are established to calculate the number of ways of placing arbitrary number of identical items into arbitrary number of identical bins. Firstly, single closed formulas for the cases of two and three bins are developed for arbitrary number of items. Secondly, a recursive formula for more than three bins is derived for arbitrary number of items. This recursive formula reduces the number of bins by one in each step until reaching the base case of three bins for which the closed formula derived in this paper can be applied. A Python program is implemented using the derived formulas that can count the number of ways for arbitrary bins and items.

Pittsburgh Interdisciplinary Mathematics ReviewVol. 2
University of Pittsburgh (US)
University of Pittsburgh
Peace, Justice and strong institutions
Openalex Percentile: Top 65%
Data Mining Algorithms and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.