new file: Files/flashplayer_32_sa.exe new file: favicon.ico new file: globe.gif new file: imgs/download.png new file: imgs/zuck.jpg new file: index.html new file: other.ico new file: script.js new file: site.webmanifest new file: sitemap.html new file: styles/backround.css new file: styles/border.css new file: styles/fonts/Titillium_Web/OFL.txt new file: styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf new file: styles/fonts/webfontkit-20221027-163353/generator_config.txt new file: styles/fonts/webfontkit-20221027-163353/specimen_files/grid_12-825-55-15.css new file: styles/fonts/webfontkit-20221027-163353/specimen_files/specimen_stylesheet.css new file: styles/fonts/webfontkit-20221027-163353/stylesheet.css new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-demo.html new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff2 new file: styles/fonts/webfontkit-20221027-165950/generator_config.txt new file: styles/fonts/webfontkit-20221027-165950/specimen_files/grid_12-825-55-15.css new file: styles/fonts/webfontkit-20221027-165950/specimen_files/specimen_stylesheet.css new file: styles/fonts/webfontkit-20221027-165950/stylesheet.css new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-demo.html new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff2 new file: styles/style.css new file: tools/2048/.gitignore new file: tools/2048/.jshintrc new file: tools/2048/CONTRIBUTING.md new file: tools/2048/LICENSE.txt new file: tools/2048/README.md new file: tools/2048/Rakefile new file: tools/2048/favicon.ico new file: tools/2048/index.html new file: tools/2048/js/animframe_polyfill.js new file: tools/2048/js/application.js new file: tools/2048/js/bind_polyfill.js new file: tools/2048/js/classlist_polyfill.js new file: tools/2048/js/game_manager.js new file: tools/2048/js/grid.js new file: tools/2048/js/html_actuator.js new file: tools/2048/js/keyboard_input_manager.js new file: tools/2048/js/local_storage_manager.js new file: tools/2048/js/tile.js new file: tools/2048/meta/apple-touch-icon.png new file: tools/webretro/cores/neocd_libretro.js new file: tools/webretro/cores/neocd_libretro.wasm new file: tools/webretro/cores/nestopia_libretro.js new file: tools/webretro/cores/nestopia_libretro.wasm new file: tools/webretro/cores/o2em_libretro.js new file: tools/webretro/cores/o2em_libretro.wasm new file: tools/webretro/cores/opera_libretro.js new file: tools/webretro/cores/opera_libretro.wasm
210 lines
7.7 KiB
HTML
210 lines
7.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en"><!-- #BeginTemplate "/Templates/Main.dwt" --><!-- DW6 -->
|
|
|
|
<!-- Mirrored from www.mathsisfun.com/combinatorics/combinations-permutations-calculator.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:30:09 GMT -->
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
|
|
<!-- #BeginEditable "doctitle" -->
|
|
<title>Combinations and Permutations Calculator</title>
|
|
|
|
|
|
<style>.mono {font-family: "Courier New", Courier, monospace; font-size:20px; text-align:left;}</style>
|
|
|
|
<!-- #EndEditable -->
|
|
<meta name="keywords" content="math, maths, mathematics, school, homework, education">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
|
<meta name="HandheldFriendly" content="true">
|
|
<meta name="referrer" content="always">
|
|
<link rel="preload" href="../images/style/font-champ-bold.ttf" as="font" type="font/ttf" crossorigin="">
|
|
<link rel="preload" href="../style4.css" as="style">
|
|
<link rel="preload" href="../main4.js" as="script">
|
|
<link rel="stylesheet" href="../style4.css">
|
|
<script src="../main4.js" defer="defer"></script>
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-29771508-1"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
gtag('config', 'UA-29771508-1');
|
|
</script>
|
|
</head>
|
|
|
|
<body id="bodybg">
|
|
|
|
<div id="stt"></div>
|
|
<div id="adTop"></div>
|
|
<header>
|
|
<div id="hdr"></div>
|
|
<div id="tran"></div>
|
|
<div id="adHide"></div>
|
|
<div id="cookOK"></div>
|
|
</header>
|
|
|
|
<div class="mid">
|
|
|
|
<nav>
|
|
<div id="menuWide" class="menu"></div>
|
|
<div id="logo"><a href="../index.html"><img src="../images/style/logo.svg" alt="Math is Fun"></a></div>
|
|
|
|
<div id="search" role="search"></div>
|
|
<div id="linkto"></div>
|
|
|
|
<div id="menuSlim" class="menu"></div>
|
|
<div id="menuTiny" class="menu"></div>
|
|
</nav>
|
|
|
|
<div id="extra"></div>
|
|
|
|
<article id="content" role="main">
|
|
|
|
<!-- #BeginEditable "Body" -->
|
|
|
|
|
|
<h1 class="center">Combinations and Permutations Calculator</h1>
|
|
|
|
<p class="center"><i>Find out how many different ways to choose items.</i><br>
|
|
<i>For an in-depth explanation of the formulas please visit <a href="combinations-permutations.html">Combinations and Permutations</a>.</i></p><br>
|
|
|
|
<div class="script" style="height: 470px;">
|
|
images/comb-perm.js
|
|
</div>
|
|
|
|
|
|
<p> </p>
|
|
|
|
|
|
<p>For an in-depth explanation please visit <a href="combinations-permutations.html">Combinations and Permutations</a>.</p>
|
|
|
|
|
|
<h2>Power Users!</h2>
|
|
|
|
You can now add "Rules" that will reduce the List:
|
|
|
|
<div class="dotpoint">
|
|
<p><b>The "has" rule</b> which says that certain items must be included (for the entry to be included).</p>
|
|
<p>Example: <b>has 2,a,b,c</b> means that an entry <b>must</b> have at least two of the letters a, b and c.</p>
|
|
</div>
|
|
<div class="dotpoint">
|
|
<p><b>The "no" rule</b> which means that some items from the list must not occur together.</p>
|
|
<p>Example: <b>no 2,a,b,c</b> means that an entry must <b>not</b> have two or more of the letters a, b and c.</p>
|
|
</div>
|
|
<div class="dotpoint">
|
|
<p><b>The "pattern" rule</b> is used to impose some kind of pattern to each entry.</p>
|
|
<p>Example: <b>pattern c,*</b> means that the letter c must be first (anything else can follow)</p>
|
|
</div>
|
|
<p>Put the rule on its own line:</p>
|
|
|
|
<div class="example">
|
|
|
|
<h3>Example: the "has" rule</h3>
|
|
<p><span class="mono">a,b,c,d,e,f,g<br>
|
|
has 2,a,b </span></p>
|
|
<p>Combinations of a,b,c,d,e,f,g that have at least 2 of a,b or c</p>
|
|
</div>
|
|
|
|
|
|
<h2>Rules In Detail</h2>
|
|
|
|
<h3>The "has" Rule</h3>
|
|
<p><i>The word "has" followed by a space and a number. Then a comma and a list of items separated by commas.</i></p>
|
|
<p>The number says how many (minimum) from the list are needed for that result to be allowed.</p>
|
|
|
|
<div class="example">
|
|
|
|
<h3>Example has 1,a,b,c</h3>
|
|
<p>Will allow if there is an <b>a</b>, or <b>b</b>, or <b>c</b>, or <b>a and b</b>, or <b>a and c</b>, or <b>b and c</b>, or all three <b>a,b and c</b>.</p>
|
|
<p>In other words, it insists there be an a or b or c in the result.</p>
|
|
<p>So {a,e,f} is accepted, but {d,e,f} is rejected.</p>
|
|
</div>
|
|
|
|
<div class="example">
|
|
|
|
<h3>Example has 2,a,b,c</h3>
|
|
<p>Will allow if there is an <b>a and b</b>, or <b>a and c</b>, or <b>b and c</b>, or all three <b>a,b and c</b>.</p>
|
|
<p>In other words, it insists there be at least 2 of a or b or c in the result.</p>
|
|
<p>So {a,b,f} is accepted, but {a,e,f} is rejected.</p>
|
|
</div>
|
|
<p> </p>
|
|
|
|
<h3>The "no" Rule</h3>
|
|
<p><i>The word "no" followed by a space and a number. Then a comma and a list of items separated by commas.</i></p>
|
|
<p>The number says how many (minimum) from the list are needed to be a rejection.</p>
|
|
|
|
<div class="example">
|
|
|
|
<h3>Example: n=5, r=3, Order=no, Replace=no</h3>
|
|
<p>Which normally produces:</p>
|
|
<p><b>{a,b,c} {a,b,d} {a,b,e} {a,c,d} {a,c,e} {a,d,e} {b,c,d} {b,c,e} {b,d,e} {c,d,e}</b></p>
|
|
<p>But when we add a "no" rule like this:</p>
|
|
<p class="mono">a,b,c,d,e,f,g<br>
|
|
no 2,a,b</p>
|
|
<p>We get:</p>
|
|
<p><b>{a,c,d} {a,c,e} {a,d,e} {b,c,d} {b,c,e} {b,d,e} {c,d,e}</b></p>
|
|
<p>The entries {a,b,c}, {a,b,d} and {a,b,e} are missing because the rule says we can't have 2 from the list a,b (having an a or b is fine, but not together)</p>
|
|
</div>
|
|
|
|
<div class="example">
|
|
|
|
<h3>Example: no 2,a,b,c</h3>
|
|
<p>Allows only these:</p>
|
|
<p><b>{a,d,e} {b,d,e} {c,d,e}</b></p>
|
|
<p>It has rejected any with <b>a and b</b>, or <b>a and c</b>, or <b>b and c</b>, or even all three <b>a,b and c</b>.</p>
|
|
<p>So {a,d,e) is allowed (only one out of a,b and c is in that)</p>
|
|
<p>But {b,c,d} is rejected (it has 2 from the list a,b,c)</p>
|
|
</div>
|
|
|
|
<div class="example">
|
|
|
|
<h3>Example: no 3,a,b,c</h3>
|
|
<p>Allows all of these:</p>
|
|
<p><b>{a,b,d} {a,b,e} {a,c,d} {a,c,e} {a,d,e} {b,c,d} {b,c,e} {b,d,e} {c,d,e}</b></p>
|
|
<p>Only {a,b,c} is missing because that is the only one that has 3 from the list a,b,c</p>
|
|
</div>
|
|
<p> </p>
|
|
|
|
<h3>The "pattern" Rule</h3>
|
|
<p><i>The word "pattern" followed by a space and a list of items separated by commas.</i></p>
|
|
<p>You can include these "special" items:</p>
|
|
<ul>
|
|
<li><b>?</b> (question mark) means any item. It is like a "wildcard".</li>
|
|
<li><b>*</b> (an asterisk) means any number of items (0, 1, or more). Like a "super wildcard".</li>
|
|
</ul>
|
|
|
|
<div class="example">
|
|
|
|
<h3>Example: pattern ?,c,*,f</h3>
|
|
<p>Means "any item, followed by c, followed by zero or more items, then f"</p>
|
|
<p>So {a,c,d,f} is allowed</p>
|
|
<p>And {b,c,f,g} is also allowed (there are no items between c and f, which is OK)</p>
|
|
<p>But {c,d,e,f} is not, because there is no item before c.</p>
|
|
</div>
|
|
|
|
<div class="example">
|
|
|
|
<h3>Example: how many ways can Alex, Betty, Carol and John be lined up, with John after Alex.</h3>
|
|
<p>Use: n=4, r=4, order=yes, replace=no.</p>
|
|
<div class="mono">Alex, Betty, Carol, John<br>
|
|
pattern *,Alex,*,John </div>
|
|
<p>The result is:</p>
|
|
<p>{Alex,Betty,Carol,John} {Alex,Betty,John,Carol} {Alex,Carol,Betty,John} {Alex,Carol,John,Betty} {Alex,John,Betty,Carol} {Alex,John,Carol,Betty} {Betty,Alex,Carol,John} {Betty,Alex,John,Carol} {Betty,Carol,Alex,John} {Carol,Alex,Betty,John} {Carol,Alex,John,Betty} {Carol,Betty,Alex,John}</p>
|
|
</div>
|
|
<p> </p>
|
|
|
|
<div class="related">
|
|
<a href="combinations-permutations.html">Combinations and Permutations</a>
|
|
<a href="../data/lottery.html">Lotteries</a>
|
|
</div>
|
|
<!-- #EndEditable -->
|
|
|
|
</article>
|
|
|
|
<div id="adend" class="centerfull noprint"></div>
|
|
<footer id="footer" class="centerfull noprint"></footer>
|
|
<div id="copyrt">Copyright © 2021 MathsIsFun.com</div>
|
|
|
|
</div>
|
|
</body><!-- #EndTemplate -->
|
|
<!-- Mirrored from www.mathsisfun.com/combinatorics/combinations-permutations-calculator.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:30:10 GMT -->
|
|
</html> |