Probability

H       % †

H is a multi-tap key that cycles through the following options:

!

A factorial, n!, is the product of the positive integers from 1 to n. The value of n must be a positive whole number { 69. When n = 0, n! = 1

nCr

Calculates the number of possible combinations given n and r, non-negative integers. The order of objects is not important, as in a hand of cards.

nPr

Calculates the number of possible permutations of n items taken r at a time, given n and r, non-negative integers. The order of objects is important, as in a race.

% † displays a menu with the following options:

rand

Generates a random real number between 0 and 1. To control a sequence of random numbers, store an integer (seed value) | 0 to rand. The seed value changes randomly every time a random number is generated.

randint(

Generates a random integer between two integers, A and B, where A { randint { B. The arguments of the function are:

randint(integerA,integerB)

Examples

!

4 H <

nCr

52 H H 5

<

nPr

8 H H H 3 <

Store value to rand

5 L % †

 

1 (Selects rand)

<

rand

% † 1 <

randint(

% † 2

3 % ` 5 ) <

Problem

An ice cream store advertises that it makes 25 flavors of home made ice cream. You like to order three different flavors in a dish. How many combinations of ice cream can you test over a very hot summer?

-

25 H H 3 <

You can choose from 2300 dishes with different combinations of flavors!