Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How many ways to make change for a Dollar?

730 views
Skip to first unread message

Don Detweiler

unread,
Dec 3, 1995, 3:00:00 AM12/3/95
to
My fourth grade child recently came home with a "math challenge" problem,
which essentially turned into a challenge in tedium.

The question was simple enough: How many different ways are there to
make change for a dollar.

Presuming that we could use a silver dollar, half dollars, quarters,
dimes, nickels, and pennies, we counted 547 different ways to make change
for a dollar. Of course teachers workbook answer was off by a few
hundred.

Is there any mathematical formula that could be used to definitively
determine the correct answer?

Don


David Karr

unread,
Dec 3, 1995, 3:00:00 AM12/3/95
to
Don Detweiler <detw...@world.std.com> writes:
>My fourth grade child recently came home with a "math challenge" problem,
>which essentially turned into a challenge in tedium.

Hmm. You can do a lot better than the tedious way, but I wouldn't
expect a fourth grader to think of it; I wonder what the purpose of
this exercise was.

>Presuming that we could use a silver dollar, half dollars, quarters,
>dimes, nickels, and pennies, we counted 547 different ways to make change
>for a dollar. Of course teachers workbook answer was off by a few
>hundred.

I get 292 ways, or 293 if you count giving a dollar back (albeit a
dollar coin) as "giving change."

I don't count different orders in which you can give the same coins.
So a half dollar and two quarters are the same as two quarters and a
half dollar.

>Is there any mathematical formula that could be used to definitively
>determine the correct answer?

I don't know a complete formula, but there are simple formulas
for the small change:

10n cents can be made in (n + 1)^2 ways using only pennies, nickels,
and dimes.

10n + 5 cents can be made in (n + 1)*(n + 2) ways using only
pennies, nickels, and dimes.

Now combine this with quarters and half-dollars:

A dollar using only quarters and half-dollars: total 3 ways

75 cents in quarters and half-dollars (2 ways)
and 25 cents in small change (12 ways): total 24 ways

50 cents in quarters and half-dollars (2 ways)
and 50 cents in small change (36 ways): total 72 ways

1 quarter, and 75 cents in small change (72 ways): 72 ways

100 cents in small change (121 ways): 121 ways

Add them all up, the total is 292.


-- David A. Karr (ka...@cs.cornell.edu)


Tom Turcich

unread,
Dec 3, 1995, 3:00:00 AM12/3/95
to
In article <49qrt8$a...@shore.shore.net>, Don Detweiler
<detw...@world.std.com> wrote:

> My fourth grade child recently came home with a "math challenge" problem,
> which essentially turned into a challenge in tedium.
>

> The question was simple enough: How many different ways are there to

> make change for a dollar.
>
> Presuming that we could use a silver dollar, half dollars, quarters,
> dimes, nickels, and pennies, we counted 547 different ways to make change
> for a dollar. Of course teachers workbook answer was off by a few
> hundred.
>

> Is there any mathematical formula that could be used to definitively
> determine the correct answer?
>

> Don

I don't have an answer for you but I remember being fascinated by this
puzzle in about the fourth grade (I'm 50 now). I lived in NYC and subway
tokens were so well accepted as change that we also had a $.15 coin in our
version of the puzzle. I remember getting my dadto save cigarette packs
(Marlboro Box) for me and I saved up a different way to change a dollar in
each box. Made for a full dresser drawer and a two year hobby that had me
out doing odd jobs to get another buck to save.

No puzzle value -- just nostalgia.

--
As a matter of fact - I do speak for the company

Tom Turcich
TATCOM, Macintosh consulting in the Houston area since 1988
Voice (713) 597-9596 FAX (713) 597-9597

Matthew A Blum

unread,
Dec 4, 1995, 3:00:00 AM12/4/95
to
d012...@dcfreenet.seflin.lib.fl.us (Mike Taylor) writes:

>Don Detweiler <detw...@world.std.com> writes:
>>Presuming that we could use a silver dollar, half dollars, quarters,
>>dimes, nickels, and pennies, we counted 547 different ways to make change
>>for a dollar. Of course teachers workbook answer was off by a few
>>hundred.

>Try this one:
>Using your choice of dollars, half-dollars, quarters, dimes, nickels
>and pennies, what is the smallest number of coins for which there is
>no combination totalling exactly one dollar?

>Here's a start:

>1 coin = 1 silver dollar
>2 coins = 2 half-dollars
>3 coins = 1 half-dollar and 2 quarters
>4 coins = 4 quarters
>5 coins = 1 half-dollar, 1 quarter, 2 dimes, and 1 nickel

6 coins = 1 half-dollar, 1 quarter, 1 dimes, 3 nickels
7 coins = 1 half-dollar, 1 quarter, 5 nickels
8 coins = 3 quarters, 5 nickels
9 coins = impossible!

It's easy enough to get 6-8 without any trouble, by realizing that as
long as there's at least one coin in the previous combination that can
be split into two coins (i.e, dime, half-dollar), you can make the
next one easily.

However, once we reach 8 coins, we only have quarters and nickels,
neither of which can be split into only two coins.

--Matt


Larry Troxler

unread,
Dec 4, 1995, 3:00:00 AM12/4/95
to

>d012...@dcfreenet.seflin.lib.fl.us (Mike Taylor) writes:

>>Here's a start:

>--Matt

9 coins = 1 Quarter, 7 dimes, 1 nickel

Larry
l...@cloud9.net

Mike Taylor

unread,
Dec 4, 1995, 3:00:00 AM12/4/95
to
Don Detweiler <detw...@world.std.com> writes:
>Presuming that we could use a silver dollar, half dollars, quarters,
>dimes, nickels, and pennies, we counted 547 different ways to make change
>for a dollar. Of course teachers workbook answer was off by a few
>hundred.

Try this one:
Using your choice of dollars, half-dollars, quarters, dimes, nickels
and pennies, what is the smallest number of coins for which there is
no combination totalling exactly one dollar?

Here's a start:

1 coin = 1 silver dollar
2 coins = 2 half-dollars
3 coins = 1 half-dollar and 2 quarters
4 coins = 4 quarters
5 coins = 1 half-dollar, 1 quarter, 2 dimes, and 1 nickel

...

Mike Taylor
--
(No email please.)


Matthew A Blum

unread,
Dec 4, 1995, 3:00:00 AM12/4/95
to
d012...@dcfreenet.seflin.lib.fl.us (Mike Taylor) writes:

>Here's a start:


Please *disregard* my previous follow to this post.

I forgot that 9 coins is possible:

1 half-dollar, 1 quarter, 2 dimes, 5 pennies

In fact, thinking about it, I'm not at all sure what the lowest number
is, only that it isn't particularly low.

If I have time later, I'll work on it.

In the meantime, please don't email me about my previous post.

--Matt


Timothy E Vaughan

unread,
Dec 5, 1995, 3:00:00 AM12/5/95
to
Don Detweiler <detw...@world.std.com> writes:

>>Presuming that we could use a silver dollar, half dollars, quarters,
>>dimes, nickels, and pennies, we counted 547 different ways to make change
>>for a dollar. Of course teachers workbook answer was off by a few
>>hundred.

I got 343 ways. I tried briefly to find a clever method, but I found that
brute-force counting (with shorthand notation) to be OK. I am willing to
check your list, but not to type in mine!

Cheers,

Tim


David Karr

unread,
Dec 5, 1995, 3:00:00 AM12/5/95
to

Apparently you have at least 50 duplicates in your list. Check the
"brute force" list below (generated by computer), and see if there
are any entries in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
2D, 10N, 30P
2D, 9N, 35P
2D, 8N, 40P
2D, 7N, 45P
2D, 6N, 50P
2D, 5N, 55P
2D, 4N, 60P
2D, 3N, 65P
2D, 2N, 70P
2D, 1N, 75P
2D, 80P
1D, 18N
1D, 17N, 5P
1D, 16N, 10P
1D, 15N, 15P
1D, 14N, 20P
1D, 13N, 25P
1D, 12N, 30P
1D, 11N, 35P
1D, 10N, 40P
1D, 9N, 45P
1D, 8N, 50P
1D, 7N, 55P
1D, 6N, 60P
1D, 5N, 65P
1D, 4N, 70P
1D, 3N, 75P
1D, 2N, 80P
1D, 1N, 85P
1D, 90P
20N
19N, 5P
18N, 10P
17N, 15P
16N, 20P
15N, 25P
14N, 30P
13N, 35P
12N, 40P
11N, 45P
10N, 50P
9N, 55P
8N, 60P
7N, 65P
6N, 70P
5N, 75P
4N, 80P
3N, 85P
2N, 90P
1N, 95P
100P


Here's the Standard ML program I used to generate the list:

val coins = [100, 50, 25, 10, 5, 1] ;
val symbols = [" dollar", "H", "Q", "D", "N", "P"] ;

fun printcoins (sym::rest) 0 prev = printcoins rest 1 sym
| printcoins (sym::rest) n prev =
let
fun purgeif sym prev n =
if sym = prev then
n + 1
else
(print ((makestring n)^prev^", ");
1)
in
printcoins rest (purgeif sym prev n) sym
end
| printcoins [] n prev = print ((makestring n)^prev^"\n");
;

fun g coins symbols used total =
if total < 0 then
()
else
case (coins, symbols, total) of
(first::coins1, sym::symbols1, total) =>
(g coins symbols (sym::used) (total - first);
g coins1 symbols1 used total)
| ([], [], 0) => printcoins (rev used) 0 "none"
| ([], [], _) => ()
| _ => raise Tl
;

fun allchange total = g coins symbols [] total ;

-- David A. Karr (ka...@cs.cornell.edu)

-- <URL:http://www.cs.cornell.edu/Info/People/karr/home.html>

Mark Cramer

unread,
Dec 5, 1995, 3:00:00 AM12/5/95
to
In article <DJ2vq...@world.std.com>,

mb...@world.std.com (Matthew A Blum) wrote:
>d012...@dcfreenet.seflin.lib.fl.us (Mike Taylor) writes:

>>Don Detweiler <detw...@world.std.com> writes:
>>>Presuming that we could use a silver dollar, half dollars, quarters,
>>>dimes, nickels, and pennies, we counted 547 different ways to make change
>>>for a dollar. Of course teachers workbook answer was off by a few
>>>hundred.

>>Try this one:


>>Using your choice of dollars, half-dollars, quarters, dimes, nickels
>>and pennies, what is the smallest number of coins for which there is
>>no combination totalling exactly one dollar?

>In fact, thinking about it, I'm not at all sure what the lowest number


>is, only that it isn't particularly low.

>If I have time later, I'll work on it.

I worked on it, the minumum number of coins you can't use is 77 and the
maximum number of ways you can make a dollar with n coins is 9 ways with 15 or
19 coins. Using the above denominations (1,5,10,25,50 and 100 cents) I get
293 ways of making change for a dollar, (for 76 coins use 70 pennies and 6
nickels).

The 9 ways with 15 coins are;
50 25 10 5 1
5 10
9 1 5
1 1 13
1 5 4 5
2 1 7 5
3 1 1 5
1 9 5
1 4 10
1 1 3 10

>In the meantime, please don't email me about my previous post.

OK, I'll post instead.

>--Matt

+-----------------------------------------------+
| Mark Cramer. Network Supervisor. | /\_|\ |
| CBE Deptmnt, Queensland University | / QUT>\ |
| of Technology, Qld. Australia. | ( __ | |
| M.Cr...@Qut.Edu.Au Ph. 07 38642073| -- \/ |
| Intl Ph Code 617 Fax 07 38641525| v |
+-----------------------------------------------+

Stephen H. Landrum

unread,
Dec 6, 1995, 3:00:00 AM12/6/95
to
Don Detweiler wrote:
>
> My fourth grade child recently came home with a "math challenge" problem,
> which essentially turned into a challenge in tedium.
>
> The question was simple enough: How many different ways are there to

> make change for a dollar.
>
> Presuming that we could use a silver dollar, half dollars, quarters,
> dimes, nickels, and pennies, we counted 547 different ways to make change
> for a dollar. Of course teachers workbook answer was off by a few
> hundred.

Well, I certainly don't get 547. I get 293.

> Is there any mathematical formula that could be used to definitively
> determine the correct answer?

You don't have to enumerate every single case.

You can break it into patterns, and notice some equations that develop.

For instance, the number of ways that pennies and nickles can be used
to make change for 5n cents is n+1. So, you have 21 ways that you can
make change for a dollar with pennies and nickels, 19 ways with one
dime and pennies and nickels, 17 ways with two dimes and pennies
and nickels, and so one.

When you break it down, and notice some more patterns, there really
aren't that many different cases to count.

--
Stephen H. Landrum voice: (415)261-2626 email: slan...@3do.com
System software programmer, M2 graphics division.
For general 3DO questions email customer...@3do.com

Mark Cramer

unread,
Dec 7, 1995, 3:00:00 AM12/7/95
to
In article <4a1u73$j...@senator-bedfellow.MIT.EDU>,
tvau...@athena.mit.edu (Timothy E Vaughan) wrote:
>Don Detweiler <detw...@world.std.com> writes:

>>>Presuming that we could use a silver dollar, half dollars, quarters,
>>>dimes, nickels, and pennies, we counted 547 different ways to make change
>>>for a dollar. Of course teachers workbook answer was off by a few
>>>hundred.

>I got 343 ways. I tried briefly to find a clever method, but I found that


>brute-force counting (with shorthand notation) to be OK. I am willing to
>check your list, but not to type in mine!

>Cheers,

>Tim

And I got 293, and I did mine on the computer so, someone wanna compare my
list with their's? The 293'rd entry is a $1

Cnt 1 0 ( 50 ) 0 ( 25 ) 0 ( 10 ) 0 ( 5 ) 100 ( 1 )
Cnt 2 0 ( 50 ) 0 ( 25 ) 0 ( 10 ) 1 ( 5 ) 95 ( 1 )
Cnt 3 0 ( 50 ) 0 ( 25 ) 0 ( 10 ) 2 ( 5 ) 90 ( 1 )
Cnt 4 0 ( 50 ) 0 ( 25 ) 0 ( 10 ) 3 ( 5 ) 85 ( 1 )
Cnt 5 0 ( 50 ) 0 ( 25 ) 0 ( 10 ) 4 ( 5 ) 80 ( 1 )
Cnt 6 0 ( 50 ) 0 ( 25 ) 0 ( 10 ) 5 ( 5 ) 75 ( 1 )
Cnt 7 0 ( 50 ) 0 ( 25 ) 0 ( 10 ) 6 ( 5 ) 70 ( 1 )
Cnt 8 0 ( 50 ) 0 ( 25 ) 0 ( 10 ) 7 ( 5 ) 65 ( 1 )
Cnt 9 0 ( 50 ) 0 ( 25 ) 0 ( 10 ) 8 ( 5 ) 60 ( 1 )
Cnt 10 0 ( 50 ) 0 ( 25 ) 0 ( 10 ) 9 ( 5 ) 55 ( 1 )
C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 ( 25 ) 1 ( 10 ) 0 ( 5 ) 15 ( 1 )
Cnt 286 1 ( 50 ) 1 ( 25 ) 1 ( 10 ) 1 ( 5 ) 10 ( 1 )
Cnt 287 1 ( 50 ) 1 ( 25 ) 1 ( 10 ) 2 ( 5 ) 5 ( 1 )
Cnt 288 1 ( 50 ) 1 ( 25 ) 1 ( 10 ) 3 ( 5 ) 0 ( 1 )
Cnt 289 1 ( 50 ) 1 ( 25 ) 2 ( 10 ) 0 ( 5 ) 5 ( 1 )
Cnt 290 1 ( 50 ) 1 ( 25 ) 2 ( 10 ) 1 ( 5 ) 0 ( 1 )
Cnt 291 1 ( 50 ) 2 ( 25 ) 0 ( 10 ) 0 ( 5 ) 0 ( 1 )
Cnt 292 2 ( 50 ) 0 ( 25 ) 0 ( 10 ) 0 ( 5 ) 0 ( 1 )

Tom Maciukenas

unread,
Dec 7, 1995, 3:00:00 AM12/7/95
to
In article <DJ2vq...@world.std.com>,

Matthew A Blum <mb...@world.std.com> wrote:
>I forgot that 9 coins is possible:
>
>1 half-dollar, 1 quarter, 2 dimes, 5 pennies
>
>In fact, thinking about it, I'm not at all sure what the lowest number
>is, only that it isn't particularly low.

Taking the exhaustive list of ways to make change for a dollar from David
Karr's post, doing a few vi manipulations, and running it through

cat ... | bc | sort -n -u

to add the number of coins in each line produced the following result:

You can make change using the following numbers of coins:

1-76, 78-80, 82-84, 87, 88, 91, 92, 96, 100

So the lowest number that's impossible is 77 coins.

-tOMM

Timothy E Vaughan

unread,
Dec 7, 1995, 3:00:00 AM12/7/95
to
In article <4a247m$r...@glitnir.cs.cornell.edu>, ka...@cs.cornell.edu

(David Karr) writes:
|> tvau...@athena.mit.edu (Timothy E Vaughan) writes:
|> >Don Detweiler <detw...@world.std.com> writes:
|> >
|> >>>Presuming that we could use a silver dollar, half dollars, quarters,
|> >>>dimes, nickels, and pennies, we counted 547 different ways to make change
|> >>>for a dollar. Of course teachers workbook answer was off by a few
|> >>>hundred.

|> >I got 343 ways. <snip>


|> Apparently you have at least 50 duplicates in your list.

<big snip>

Nope. It's worse! I don't know how to count! I double-checked
my list after Mark Cramer sent me his, and found that I had counted
one of my sheets twice accidentally.

293 is the right answer, found independently by at least three people
now. I wonder what the teacher's workbook said? 8-)

Tim

John McGowan

unread,
Dec 7, 1995, 3:00:00 AM12/7/95
to
Mark Cramer (M.Cr...@qut.edu.au) wrote:

> In article <4a1u73$j...@senator-bedfellow.MIT.EDU>,
> tvau...@athena.mit.edu (Timothy E Vaughan) wrote:
> >Don Detweiler <detw...@world.std.com> writes:

> >>>Presuming that we could use a silver dollar, half dollars, quarters,
> >>>dimes, nickels, and pennies, we counted 547 different ways to make change
> >>>for a dollar. Of course teachers workbook answer was off by a few
> >>>hundred.

> >I got 343 ways. I tried briefly to find a clever method, but I found that
> >brute-force counting (with shorthand notation) to be OK. I am willing to
> >check your list, but not to type in mine!

> And I got 293, and I did mine on the computer so, someone wanna compare my

> list with their's? The 293'rd entry is a $1

293 (including the dollar itself) is correct. See the post in rec.puzzles
under the title "4th grade math puzzler" (the title under which the
original question was posted to sci.math... I used that title in the
cross post here and to sci.math though the original post here was under a
different title... which is why my answer with the programme and data for
the number of ways of paying out any amount from one cent through one
dollar did not appear in this thread).

Basically, one looks at the coefficient of x^100 in the power series
expansion of 1/[(1-x)(1-x^5)(1-x^10)(1-x^25)(1-x^50)(1-x^100)]

(can replace by the multiplication of the polynomials:

(1+x+x^2+x^3+x^4...+x^100)(1+x^5+x^10+x^15...+x^100)(1+x^10+x^20+x^30..+x^100)
*(1+x^25+x^50+x^75+x^100)(1+x^50+x^100)(1+x^100)

(pennies, nickels, dimes, quarters, half dollars, dollars) (the
polynomials suffice as the power series has other terms, but they
correspond to amounts greater than $1.00... the polynomials simply
restrict to the terms that might influence the x^100 term) which appears
to be 293.

--
John McGowan | jmcg...@inch.com [Internet Channel]
| jmcg...@mail.coin.missouri.edu [COIN]
--------------+-----------------------------------------------------

Patrik Lundin

unread,
Dec 10, 1995, 3:00:00 AM12/10/95
to
Mike Taylor (d012...@dcfreenet.seflin.lib.fl.us) wrote:
: Don Detweiler <detw...@world.std.com> writes:
: >Presuming that we could use a silver dollar, half dollars, quarters,
: >dimes, nickels, and pennies, we counted 547 different ways to make change
: >for a dollar. Of course teachers workbook answer was off by a few
: >hundred.

: Try this one:


: Using your choice of dollars, half-dollars, quarters, dimes, nickels
: and pennies, what is the smallest number of coins for which there is
: no combination totalling exactly one dollar?

Well, a quick c prog gives me 77 coins as the first impossible one.
However, it only gives 292 combinations (which is way <547), so maybe
there is something wrong with it... Anyhow, I can't seem to catch it missing
any, so here it is...

--- begin change.c ---
int coins[]={100,50,25,10,5,1};
int didit;

main()
{
int no,us[6];

memset(&us,0,sizeof(us));

for(no=1;no<100;no++)
{
didit=0;
printf("%d coins:\n",no);
doit(0,&us,no);
if(!didit)
puts(" Impossible!");
}
}

int doit(a,u,no)
int a,*u,no;
{
int tot,used[6];

if(no<0) return;

used[0]=u[0]; used[1]=u[1]; used[2]=u[2];
used[3]=u[3]; used[4]=u[4]; used[5]=u[5];

tot=coins[0]*used[0]+coins[1]*used[1]+coins[2]*used[2]+
coins[3]*used[3]+coins[4]*used[4]+coins[5]*used[5];

if(tot>100)
return;

if(!no&&(tot==100))
{
printf(" ");
if(used[0]) printf("%d dollar%s ",used[0],used[0]>1?"s":"");
if(used[1]) printf("%d half-dollar%s ",used[1],used[1]>1?"s":"");
if(used[2]) printf("%d quater%s ",used[2],used[2]>1?"s":"");
if(used[3]) printf("%d dime%s ",used[3],used[3]>1?"s":"");
if(used[4]) printf("%d nickle%s ",used[4],used[4]>1?"s":"");
if(used[5]) printf("%d penn%s ",used[5],used[5]>1?"ies":"y");
puts("");

didit=1;
}

switch(a)
{
case 0: used[0]++; doit(0,&used,no-1); used[0]--;
case 1: used[1]++; doit(1,&used,no-1); used[1]--;
case 2: used[2]++; doit(2,&used,no-1); used[2]--;
case 3: used[3]++; doit(3,&used,no-1); used[3]--;
case 4: used[4]++; doit(4,&used,no-1); used[4]--;
case 5: used[5]++; doit(5,&used,no-1); used[5]--;
}
}
--- end ---

Feal free to comment by news or email if you see it misbehaving.


/PL
---
main(x,y/* Patrik Lundin | lun...@ludd.luth.se */){for(;x++;)
for(y=2/* Docentv. 28 | d94...@sm.luth.se */;x%y;)printf(
++y/x+/* 977 52 Luleaa | http://www.ludd.luth.se/~lundin */"\0%d\n",x);}

Dennis Yelle

unread,
Dec 10, 1995, 3:00:00 AM12/10/95
to
In article <4aff3q$9...@omega.ludd.luth.se> lun...@ludd.luth.se (Patrik Lundin) writes:
>Mike Taylor (d012...@dcfreenet.seflin.lib.fl.us) wrote:
>: Don Detweiler <detw...@world.std.com> writes:
>: >Presuming that we could use a silver dollar, half dollars, quarters,
>: >dimes, nickels, and pennies, we counted 547 different ways to make change
>: >for a dollar. Of course teachers workbook answer was off by a few
>: >hundred.
>
>: Try this one:
>: Using your choice of dollars, half-dollars, quarters, dimes, nickels
>: and pennies, what is the smallest number of coins for which there is
>: no combination totalling exactly one dollar?
>
>Well, a quick c prog gives me 77 coins as the first impossible one.
>However, it only gives 292 combinations (which is way <547), so maybe

I think that others have claimed that 293 is the right answer,
see below for why.

>there is something wrong with it... Anyhow, I can't seem to catch it missing
>any, so here it is...
>
>--- begin change.c ---
>int coins[]={100,50,25,10,5,1};
>int didit;
>
>main()
>{
>int no,us[6];
>
>memset(&us,0,sizeof(us));
>
>for(no=1;no<100;no++)

This looks like it will miss exactly one case.
OB Puzzle: Which case will it miss?


--
den...@netcom.com (Dennis Yelle)
"You must do the thing you think you cannot do." -- Eleanor Roosevelt

Mark Ceulemans

unread,
Dec 11, 1995, 3:00:00 AM12/11/95
to
Since no < 100, the sollution
1Dollar=100 won't de calculated.

--
____________________________________________________
' `
| Mark Ceulemans |
| |
| home: Spaarstraat 10 work: K.U.Leuven |
| 3010 Kessel-Lo Celestynenlaan 200F |
| Belgium 3001 Heverlee |
| Belgium |
| |
| tel: 016/35.34.50 016/32.73.93 |
| |
| E-Mail: Mark.Ce...@chem.kuleuven.ac.be |
| |
`____________________________________________________'


0 new messages