You are not logged in.
In how many ways can you arrange the characters of MATHEMATICS with the vowels in that order?
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Hi;
EM:
s1 = Permutations[{m, a, t, h, e, m, a, t, i, c, s}, {11}];
Cases[s1, {___, a, ___, e, ___, a, ___, i, ___}] // Length
Analytically:
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hi,
Using bobbym's idea to do it with Sage and unix-like systems utilities:
import os
plst = Permutations("mathematics").list()
fo = open("tmpf", "w")
for pp in plst:
fo.write(''.join(pp)+"\n")
fo.close()
os.system("cat tmpf | grep ".*a.*e.*a.*i" | wc -l")
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?
"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."
Offline
Since I just added a permutation iterator to my module yesterday, this is a convenient time to try it. Using the hash to not count duplicates.
my %h;
my @m = split "", "mathematics";
forperm {
my $s = join "", @m[@_];
undef $h{$s} if $s =~ /a.*e.*a.*i/;
# alternate: undef $h{$s} if $s =~ tr/aeiou//cdr eq "aeai"
} scalar(@m);
say scalar keys %h;
Result match's Bobbym's analytic answer. Thanks for the fun!
Offline
2. In how many ways can you pick 4 objects from 5 kabooblydos, 4 carrots, 3 transparent soaps and arrange them on four different plates such that each contains exactly one object?
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Hi;
I am not following the plate idea. How does that make it different from any arrangement problem?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
It is the same thing, you just pick four objects and arrange them. E.g, KCTT and TTCK are distinct.
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Repetitions are allowed, you are sure?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I am getting 80, but might be incorrect. Had to do it by hand.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
Repetitions are allowed, you are sure?
example?
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
80 is correct.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I think repetitions must be allowed. If not, the solution is 0.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
A sim is needed.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
It cannot be called a sim but I will write it.
Unfortunately, the person who will review the solution knows nothing about EM
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Examine and multiply by the correct constant the coefficient of x^4.
Permutations[{k, k, k, k, k, c, c, c, c, t, t, t}, {4}]//Length
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Why is each term of the gf divided by some factorial?
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
Because this is an exponential gf not an ordinary one. Exponential ones count when order counts.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I also did it with that GF.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
Unfortunately the person reviewing the solution is 16 and has no idea what a GF is, nor do I know enough to explain him about it.
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
16 is old enough.
You can do it by casework, then.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
I know you did.
Unfortunately, the person who will review the solution knows nothing about EM
There are many ways to solve a problem. Good mathematicians do not criticize how you do it generally. See the big boys on the SE.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I will have to ask Rakesh to solve it for him.
Can I see the casework solution please?
'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.
Offline
It will take time to write up it is lengthy and ugly.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hm, you just list out all the possibilities.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
That is why casework is junk and I prefer generating functions. It will take me about an hour to latex it up and therefore it will take several hours.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline