|
|
|
[Description | Example | History | Applications | Implementation | Classroom | Links]
What are the different ways a cashier could give out 30¢ in change
to a customer? The simplest way would be to give a quarter and a nickel.
But the cashier could also choose two dimes and two nickels, a quarter
and ten pennies, or even 30 pennies. Three of the possibilities are
listed below.
There are many other possibilities as well.
Each possibility is called a coin changing.
Coin changings are are special cases of what mathematicians call
numerical partitions.
All the coin-changings in AMOF use only existing Canadian coin values
(1,5,10,25 cent coins, and 1 and 2 dollar coins).
In a numerical parition, all coin values are present
(1,2,3,... cent coins).
AMOF can list all coin-changings and all numerical partitions.
When counting different coin-changings (or numerical partitions), the
order in which the coins appear does not matter; a dime and and nickel
is exactly the same as a nickel and a dime.
In our output we will arrange the coins in decreasing order; largest
coin first, smallest coin last.
Here's how a mathematician would define a numerical partition:
A numerical partition of an integer n is a sequence
, such that
.
Each is called a part.
For example, 7+4+4+1+1+1 is a partition of 18 into 6 parts.
AMOF allows you to specify both n and k.
The number of partitions of n is denoted p(n) and the number of partitions of n into k parts is denoted p(n, k).
p(n, k) obeys the recurrence relation
The problem of coin changing is simply a special case of the numerical
partition problem, since the different ways in which to make change for an
amount of money
is simply a type of numerical partition. For example, the ways to make
change for 12¢ are exactly the ways to partition the number 12 if you
may only use the numbers 1, 5 and 10 in the parts.
Every numerical partition of a number n corresponds to a
unique "Ferrer's diagram." A Ferrer's diagram of a partition is an
arrangement of n dots on a square grid where a part i in
the partition is represented by placing
dots in a row.
An example of a Ferrer's diagram for the numerical partition 7+4+4+1+1+1 is pictured below;
7 dots in the first row, 4 dots in the second row, etc.
A few examples of numerical partitions have been given in the above paragraphs.
As another example, below is the output of the coin changing version of
numerical partitions in AMOF where . In this
example, a pictorial representation of the coins is also displayed.
Description of the Problem
Coin-Changing
30¢ =
+
+
+
30¢ =
+
30¢ =
+
+
+
+
+
30¢ =
Numerical Partitions
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Example
| Numbers | Pictures |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 10 + 1 + 1 |
|||||||||||
| 5 + 5 + 1 + 1 |
|||||||||||
| 5 + 1 + 1 + 1 + 1 + 1 + 1 + 1 |
| ||||||||||
| 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 |
|
Here is another example, where the input is . Only the first 5 values of the output are shown.
| Numbers | Pictures |
||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 200 |
|||||||||||||||||||||
| 100 + 100 |
|||||||||||||||||||||
| 100 + 25 + 25 + 25 + 25 |
|||||||||||||||||||||
| 100 + 25 + 25 + 25 + 10 + 10 + 5 |
|||||||||||||||||||||
| 100 + 25 + 25 + 25 + 10 + 10 + 1 + 1 + 1 + 1 + 1 |
|
One might suppose that coin-changing problems arose shortly after the advent of currency. Coins were invented sometime around 700 B.C. (link), but the number of ways to make change was not of great importance, either financially or mathematically, except as a way to motivate the study of numerical partitions, as we do here.
The concept of a numerical partition undoubtedly originates much further in time than what is recorded in written history. Many famous mathematicians have worked with numerical partitions, and their study is an important part of what is know as "number theory".
An algorithm for generating numerical partitions was provided by Carl Friedrich Hindenburg in 1778. Perhaps the most intriguing person to work on the partition recurrence was Ramanujan, who stimulated work on the subject with a fairly close approximation to the sequence of numbers. Ramanujan's approximation function from 1913 was very similar to the problem's exact solution, which came in 1937. What is interesting about Ramanujan was that he had no mathematical training, living as a clerk in India. When G.H. Hardy, a mathematician in England, received a letter from him discussing some mathematical topics, Hardy was impressed. Ramanujan was then brought to Cambridge University in England, where he and Hardy collaborated on several results.
A number of researchers have developed algorithms for generating numerical partitions of various types since the 1960's.
In the generation page, you will have the choice of listing:
You choose the input value for n in either case, and can specify
either, both or neither of the other two parameters k and m.
If you choose to list the regular type of numerical partitions,
n will represent the number, k will represent the number of
parts, and m will represent the size of the largest part. For
example, if you choose to list all numerical partitions of 8, with input
values , and
, then AMOF will return all five partitions with
3 parts as follows:
As a second example, if you choose to list all numerical partitions of
9 with input value , and , then AMOF will return all five partitions with largest part 5 as
follows:
Finally, if you choose to list all numerical partitions of 8 with
input value
The idea of a numerical partition can be used in the younger grades to
develop and test students' number concept. Several activities which
are related to numerical partitions are mentioned in a reference book
produced by NCTM given in the links section of this page. For
example, students can glue groups of toothpicks on a file card, writing
the number of toothpicks beneath each group and writing the total number
of toothpicks at the bottom of the card.
AMOF will allow students to test their understanding of coin changing
and breaking a number into parts with the added appeal of showing them
diagrams of the results. They might try to list the partitions in
lexicographic order (or reverse lexicographic for coins) and use AMOF to
check their answers.
For high school students, the topics of partitions and recurrence
relations can be covered to prepare them for postsecondary education. In
[NCTM], both partitions and recurrence
relations are reported to be combinatorics topics in at least half
of college and university math and computer science courses. This is
mentioned in the chapter entitled
"The Roles of Finite and Discrete Mathematics in College and High School
Mathematics"
Explanation of AMOF Implementation
In the Classroom
Each student draws one card from a deck containing cards numbered 4 through 8. They then take turns picking up a domino. If the number of dots on a student's domino matches the number on the card, they keep the domino. When all dominos have been examined, the children with the most dominoes wins. (Kindergarten, page 7)
Have students glue groups of toothpicks on a file card. They can then write the number of toothpicks in each group beneath the group, and write the total number of toothpicks on the card at the bottom of the card. (Grade 1, page 11)
Begin with a work mat that has 2 leaves drawn on it, and a set of 6 beans decorated like ladybugs. Ask students to place the ladybugs on the two leaves in different ways. Count the number of ways this can be done (consider 1 + 5 and 5 + 1 as different). (Grade 1, pages 11-12)
Construct caterpillar heads so students can make domino caterpillars by stringing any length of dominoes in a line (not necessarily straight). Have them count the number of dots in their caterpillar and notice different ways to get the same total. (Grade 2, page 18)
Announce a number and ask each student in turn to state a question for which that number is an answer. This may involve multiplication, subtraction, and division, as well as addition. (Grade 4, pages 40-41)
Ask students to "make change" for a certain amount of money using play coins.
Have students place postage on an envelope using a certain stamp values.
|
|
|