Subject: RE: [MI400] odd sort of bit-counter... From: "Dan Bale" Date: Mon, 20 Sep 2004 16:09:04 -0400 List-archive: List-help: List-id: MI Programming on the AS400 / iSeries List-post: List-subscribe: , List-unsubscribe: ,

```> -----Original Message-----
> From: mi400-bounces@xxxxxxxxxxxx / Joe Pluta
> Sent: Monday, September 20, 2004 4:03 PM
>
> > BTW, 100! = 9.3 e+153 = the number of any possible combination of a
> > list of 100 elements.  Were you thinking of a different value?
>
> Factorials are permutations.  Combinations are "far smaller", relatively
> speaking.  The number of possible combinations of N elements is 2^N, or
> in the case of 100 elements, about a million possibilities.

Darn it dude!  I knew this stuff in the last millenium, but my brain turned
fuzzy tutoring my kids through 8th grade math!

So, forgive my ignorance, but what is 2^N?  In the example above, is it
2^100, or 2 to the 100th power?  Windows calculator has a x^y button and
when I type 2 [x^y] 100 [=], I get
1,267,650,600,228,229,401,496,703,205,376.

Does the following represent 3 permutations but only 1 combination?
a) 1, 5, 8
b) 5, 1, 8
c) 8, 5, 1

(Re)learning my math today!

db

```

As an Amazon Associate we earn from qualifying purchases.

Follow-Ups:

Replies:

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.