Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#101 Re: Maths Is Fun - Suggestions and Comments » Spelling? » 2010-02-28 12:07:35

I'll throw in another yay for en-GB being correct.

#102 Re: Coder's Corner » Programming Joke » 2010-02-28 04:11:36

Hey, it's not the programmer's fault if he got bad instructions.

#103 Re: Help Me ! » Limits » 2010-02-28 04:10:09

L'Hopital's rule is useful here.

It says that if f(a) = g(a) = 0, then:

#104 Re: Exercises » What do you think? » 2010-02-27 23:59:13

That worked out a lot nicer than I expected (assuming I haven't stumbled somewhere)

#105 Re: Help Me ! » Virus spread » 2010-02-27 09:59:56

Substitute 2000 for the N in your equation, and then solve for t.

2000  = 15000/(1 + 100e^(-0.5t))
But 2000 = 15000/7.5, so (1 + 100e^(-0.5t)) = 7.5

Therefore 100e^(-0.5t) = 6.5, and so e^(-0.5t) = 0.065.
Taking logs, -0.5t = -2.733...
And so, t = 5.467, to three decimal places.

In other words, a little over 5 days, 11 hours.

#106 Re: Exercises » Is this cool with you? » 2010-02-25 08:55:05

I like the value of the second answer, but I like the reasoning of the first.
Even though it's wrong, at least it explained itself a bit. tongue

#107 Re: Help Me ! » Probability related.....probably » 2010-02-20 10:44:16

The probability of choosing bag A, then getting a swear from it is 1/2 * 2/5 = 1/5.
The probability of choosing bag B, then getting a swear from it is 1/2 * 3/7 = 3/14.

The overall probability of getting a swear is the sum of these two, which is 29/70.

Therefore, given that you picked a swear, the probability of you having chosen bag A is
(1/5) / (29/70) = 14/29.

#108 Help Me ! » Non-repeating sequences » 2010-02-20 02:55:55

mathsyperson
Replies: 0

(This maybe isn't the right place to post this, since I'm only asking out of curiosity, but it seemed most appropriate. Nothing urgent though.)

I'm looking for sequences with the property that it's impossible to find a string of number(s) that directly follows itself.

eg.
11
1223
1212
123123

all won't work.

I'm trying to find the maximum length of that kind of sequence, where all its elements are taken from the first n integers.

The first two cases are easy:

n=1:
1

n=2:
121

But with n=3 it gets quite a lot harder.

First I thought I saw a pattern and went with 1213121 as the best one.
But in fact, that can be improved by 12131231321, for example, and that's very beatable as well.

Can anyone find the limit (if there is one)?

#109 Re: Dark Discussions at Cafe Infinity » Get used to it? » 2010-02-19 11:24:32

I read this story somewhere else, and it said that they were found out because they disciplined a student over "behaviour in his home". Surely even if they were telling the truth when they said they'd only view the webcam if the laptop was missing, they'd not act upon anything they saw if it was accidental?

For one thing they have no right, and for another they're kind of giving themselves away.

#110 Re: Help Me ! » I've found this to be INTERESTING.. » 2010-02-18 19:32:21

Maybe, but both are pretty quick.

for (int i = 0; i <= 9 ; i++)
{
     for (int j = i; j <= 9; j++)
     {
          if((i+j) % 9 == (i*j) % 9)
          {
               Console.WriteLine("(" + i + "," + j + ")")
          }
     }
}

That was around 2 minutes.

#111 Re: Help Me ! » Combinatorics (Surjective functions) » 2010-02-18 08:33:14

Ah, I like that way much more. Nice work. smile

#112 Re: Help Me ! » Combinatorics (Surjective functions) » 2010-02-18 06:51:59

A function A -> B is surjective if every element of B is mapped to by some element of A.

For example, taking A = {1, 2, 3, 4, 5} and B = {7, 8, 9}...

The function with the following maps:

1 -> 7
2 -> 8
3 -> 9
4 -> 8
5 -> 7

is surjective, because 7, 8 and 9 all have something that maps to them.

This function:

1 -> 9
2 -> 8
3 -> 9
4 -> 8
5 -> 9

is not surjective, because 7 isn't mapped to by anything.

This may not be the best way, but I'd try to solve the problem by building up the function piece by piece.

f(1) doesn't really matter - whatever you assign it to, the value will be 'new'.
There are therefore 3 functions f: {1} -> {7, 8, 9} that map to one element.

f(2) might map to the same thing as f(1), or it might map to something different (there are two ways of doing this).

So there are 3 functions f: {1, 2} -> {7, 8, 9} that map to one element, and 6 functions that map to two.

Now we can consider f(3).
If you build on a function that maps to one element, there is one way of keeping it as a function that maps to one, and two ways to change it into a function that maps to two.

On the other hand, if you build on a function that maps to two elements, there are two ways to keep it that way, and one way of mapping it to all three.

Overall then, there are 3 functions f:{1,2,3} -> {7,8,9} that map to one element,
18 functions that map to two elements, and 6 functions that map to all three.

You can use the same inductive reasoning to find the numbers for after you add in f(4) and f(5), and it turns out that there are 150 surjective functions where |A| = 5 and |B| = 3.

---

Bit long-winded, but it works at least. Maybe someone else will come along with a much better way.

#113 Re: Dark Discussions at Cafe Infinity » Other Forums, are they rude? » 2010-02-14 02:23:26

Identity wrote:

...other sites can still appear very rude to outsiders.

That's an interesting comment, because in my opinion it is the outsiders that can best decide how friendly a forum is.

I often see places where the members are perfectly nice to each other, but they treat new people and guests very differently. Maybe because the new person needs to "earn the forum's respect" or maybe because the forum is "already full", but for whatever reason, many forums are aloof at best and aggressive at worst towards newcomers.

It's amazing how some of the forums that do this actually pride themselves on how friendly they are.
I'd like to think that we're friendly, so I'm hoping that we're not actually one of those.

#114 Re: Help Me ! » Uhh... ridiculously easy D1 question or not? » 2010-02-13 23:01:19

Nearly all of my University exams were like that. A typical question would look like:

(i) Define this/these term(s)

(ii) Prove this/these theorems

(iii) Answer this question that makes use of those definitions and theorems (you may remember doing something similar in lectures)

(iv) Answer this question that makes use of those definitions and theorems, but this time it's not like any exercise you've seen before. This time you have to think! yikes


It's fair enough really. If you don't know your definitions then you won't get anywhere, so it's a good thing that it tests you on them.

#115 Re: Help Me ! » Simple limit with a radical » 2010-02-11 08:10:08

Show that as x gets large, your expression gets close to:

#116 Re: Help Me ! » Omg Surds.... » 2010-02-11 05:54:29

All the steps are correct, but if the question was to simplify it then it's understandably not the right answer.

#117 Re: Help Me ! » different sizes of infinity » 2010-02-10 07:37:42

Consider the sequence (1, 2, 3, 4, 5, ...), and compare it with (2, 4, 6, 8, 10, ...).

Both of those go to infinity, but if you divide the two nth terms then you'll always get 2. Tweak the second sequence and you can get infinity/infinity to equal whatever you want (except 0).

However, if you also use (1, 4, 9, 16, 25, ...) then you can get an answer of 0, and also of infinity.

#118 Re: Help Me ! » Expected value of a dice game » 2010-02-10 07:31:04

When I first read the question, I interpreted it as that you could roll the die twice and got paid the larger roll, without having to gamble.

If that's the case, the expected win is (1*1 + 3*2 + 5*3 + 7*4 + 9*5 + 11*6)/36 = 4.47222...

If having a second throw makes you lose the first though, then I agree with 4.25 being the best answer.

#120 Re: Puzzles and Games » Periodic Table Memorisation Game » 2010-02-07 02:38:20

I got 54. I was shooting for 50 though, so I'm happy about that. smile

#121 Re: Exercises » What do you think? » 2010-02-03 07:56:27

I agree that numerical methods are usually quicker and easier to use, but I still think that it's best to be algebraic whenever possible.

It's just so much nicer to be *absolutely correct* than just very accurate. Numerical methods are fine for any and all practical purposes, but to get a closed-form expression is much more pleasing.

#122 Re: Help Me ! » combinations and pascals triangle » 2010-02-03 07:51:44

The easier way of adding the first 100 numbers is to group them like this:
1+2+3+...+98+99+100 = (1+100) + (2+99) + (3+98) + ... = 101+101+101+... = 50*101 = 5050.

The legend goes that Gauss's teacher set the class this problem to keep them quiet for a while, but Gauss discovered that method and had it solved in under a minute.

#123 Re: Exercises » Is this cool with you? » 2010-02-01 11:44:28

I agree with B.

P(T) = 0.6 and P(T n W) = 0.45, so P(T n ¬W) = 0.15.
Also, P(¬T n ¬W) = 0.16.
The remaining event is ¬T n W, and the probability of this must be 0.24.

Therefore, P(W) = 0.45 + 0.24 = 0.69 = 69%.

#124 Re: Help Me ! » Please help settle this fractions test question » 2010-01-31 12:54:53

Since it tells you that the planets have been divided into inner and outer, I'd say that Pluto being in neither category means it's not counted as a planet (for the purposes of this question anyway).

It perhaps could have been clearer, but I wouldn't say it was ambiguous.

#125 Re: Help Me ! » Olym » 2010-01-30 03:18:13

Find a way to do it when p=3, then find a way to convert a p=k solution into a p=k+1 solution.

Post again if you need more hints.

Board footer

Powered by FluxBB