-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpermutations.html
More file actions
97 lines (84 loc) · 2.64 KB
/
permutations.html
File metadata and controls
97 lines (84 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Understanding Permutations</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 20px;
background-color: #f4f4f4;
color: #333;
}
header {
background: #35424a;
color: #ffffff;
padding: 10px 0;
text-align: center;
}
h1 {
margin-bottom: 10px;
}
main {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background: #ffffff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h2 {
color: #35424a;
}
p {
margin-bottom: 15px;
}
footer {
text-align: center;
padding: 10px 0;
background: #35424a;
color: #ffffff;
position: relative;
bottom: 0;
width: 100%;
margin-top: 20px;
}
.example {
background: #e7f3fe;
border-left: 6px solid #2196F3;
padding: 10px;
margin: 20px 0;
}
.formula {
font-family: monospace;
background-color: #f9f9f9;
padding: 10px;
border: 1px solid #ccc;
margin: 20px 0;
}
</style>
</head>
<body>
<header>
<h1>Understanding Permutations: The Art of Arranging</h1>
</header>
<main>
<h2>What Are Permutations?</h2>
<p>Permutations are a fundamental concept in mathematics, particularly in the field of combinatorics. They involve the arrangement of items in a specific order.</p>
<h2>Mathematical Formulation</h2>
<p>The number of permutations of <em>n</em> distinct objects is given by the factorial of <em>n</em>, denoted as <em>n!</em>.</p>
<div class="formula">n! = n × (n - 1) × (n - 2) × ... × 1</div>
<h2>Example Calculation</h2>
<div class="example">
If you have 4 letters (A, B, C, D) and want to find out how many ways you can arrange 2 of them:
<div class="formula">P(4, 2) = 4! / (4 - 2)! = 12</div>
</div>
<h2>Applications of Permutations</h2>
<p>Permutations have a wide array of applications across various fields, including mathematics, computer science, cryptography, and game theory.</p>
</main>
<footer>
<p>© 2024 Fun Maths. All rights reserved.</p>
</footer>
</body>
</html>