% LMex020616_4th.m
% Example 2.6.16 p 103-104 in
% Larsen & Marx (2006) Introduction to Mathematical Statistics, 4th edition
% Writtten by Eugene Gallagher, Eugene.Gallagher@umb.edu
% http://alpha.es.umb.edu/faculty/edg/files/edgwebp.html
% Written 1/15/2011 & last revised 1/16/2011
% How many different ways are there to form palandromes from these 12 
% letters: 4 A's, 6 B's, and 2 C's.   
% Program call's Gallagher's brillouin.m, the brillouin's biodiversity
% index.
DATA=[4 6 2]/2;
Permutations=exp(sum(DATA)*brillouin(DATA))
% Advanced problem: List all 60!