Trying to get oriented what is around in combinatorics ...
|
Problem: A postal clerk has only 14 and 21-cent stamps. What combinations can be used to make up 3.50 Dollars worth of stamps?
|
Integer vectors of 350 weighted by [14, 21] |
9 |
[[1, 16], [4, 14], [7, 12], [10, 10], [13, 8], [16, 6], [19, 4], [22, 2], [25, 0]] |
Let us experiment a little bit with the Fibonacci numbers. Recall that they are defined by the inital condition f_1=f_2=1 and the recursion f_{n+2} = f_{n+1} + f_n
[1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377] |
[2, 8, 34, 144] |
7 |
Defining our first function:
|
[1, 2, 4, 7, 12, 20, 33, 54, 88, 143, 232, 376] |
Now we might conjecture that the sum of the first n Fibonacci numbers is equal to f_{n+2}-1. Let us test this conjecture!
Done! |
What would have happened if we had tried a wrong conjecture?
Traceback (click to the left of this block for traceback) ... AssertionError |
The set of all divisors of a number n form a poset by defining a<=b if a divides b.
[1, 2, 3, 5, 6, 10, 15, 30] |
|
True |
False |
|
|
|
True |
True |
True |
[1] |
[60] |
-1 |
0 |
0 |
Let us test some results on Mersenne numbers:
|
Is p always prime when the Mersenne number is a prime?
[True, True, True, True, True, True, True, True, True, True, True, True, True, True] |
Is the converse also true?
False |
Finding the smallest counterexample:
(True, 11) |
Crystal bases!!
8 |
|
|