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

You are not logged in.

#26 2010-03-02 01:30:32

JaneFairfax
Member
Registered: 2007-02-23
Posts: 6,868

Re: Is this cool with you?

They’re all wrong. Correct answer is

When k = −5 or 0, it still has 4 real roots (repeated roots count as two roots).


Q: Who wrote the novels Mrs Dalloway and To the Lighthouse?

A: Click here for answer.

Offline

#27 2010-03-02 14:40:22

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

Good work Jane for pointing that out. I don't know how I missed that but I did. I chose d.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#28 2010-03-04 20:11:42

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

Hi;

Discussing the sum:

A says that n is divisible by 12347, B says n isn't divisible by 12347. Who is right?


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#29 2010-03-06 10:05:18

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

Hi

How many integers from the set:

{5000, 5001, 5002, 5003, 5004, 5005, ... 10000}

are there that when you some the digits you get a sum of 21.

A says 123;

B says none

C says (10000 - 5000 -2) / 21


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#30 2010-03-06 10:57:28

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,843

Re: Is this cool with you?

Hi Bobby,

I get

integers.

Last edited by phrontister (2010-03-06 19:36:17)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#31 2010-03-06 14:02:32

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

Hi;

That looks correct, what did you notice about the answers that could have helped?


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#32 2010-03-06 14:29:30

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,843

Re: Is this cool with you?

Hi Bobby,

I didn't analyse the answers...I just did

.

Last edited by phrontister (2010-03-06 19:27:56)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#33 2010-03-06 14:36:57

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

Good work! Thanks for the spreadsheet work.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#34 2010-03-06 20:47:37

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,843

Re: Is this cool with you?

my code for the answer in BASIC.

How did you do it, Bobby?


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#35 2010-03-07 01:41:37

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

Re: Is this cool with you?

Ah, I like your way. Nice and simple, write in under a minute, run in under a second.

Here's the overly complicated thing I'd have done:


Why did the vector cross the road?
It wanted to be normal.

Offline

#36 2010-03-07 04:11:14

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,843

Re: Is this cool with you?

And I like what you've done, mathsyperson! Clever, efficient, with good insight and understanding that I lack. I puzzled over the fourth line but eventually saw what you did. Nice!

I don't know computing software such as MATLAB, but I wanted to see what your code did and installed FreeMat...where it ran fine. I converted your code to

, with this result: 0 milliseconds, compared with my 220ms if I don't print the list...only the total count.

I also like using a spreadsheet for something like this, just for ease of analysing the result list and to play around some more with the figures.

Last edited by phrontister (2010-03-07 11:55:27)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#37 2010-03-07 11:19:11

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

Re: Is this cool with you?

Mine is more efficient, but 220ms is still virtually nothing and it probably took me a good while longer to write mine.
I tend to try making my code as optimal as I can even when it's not really necessary. Yours is probably a lot easier to debug too. (In fact, for a bit mine was giving a different answer to yours, and it took me a little while to figure out the reason)

Still, at least it's good practice for problems where efficiency can mean the difference between minutes and days. smile

By the way, thanks for mentioning FreeMat. I only had access to MATLAB while at University, and I've been looking for a good replacement for a while now.


Why did the vector cross the road?
It wanted to be normal.

Offline

#38 2010-03-07 11:51:21

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,843

Re: Is this cool with you?

Yes, the total time spent on my BASIC code was only a minute or two because of its simplicity.

The main reason I wrote it (I'd opted for spreadsheet initially to help analyse the results...and because I enjoy using Excel) was that I couldn't work out how FreeMat's debugger worked, and I wanted to see what your program was doing. BASIC's debugger revealed that very quickly...although, thinking about it more, I should have been able to understand it without turning to the debugger for help.

Learning all the time... smile


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#39 2010-03-07 13:47:38

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

Hi

How many integers from the set:

{1^2, 2^2, 3^2, 4^2, ... 1 000 000 000^2}

are there that when you sum the digits you get a sum of 21.

A says 123000;

B says none

C says (1 000 000 000 - 500 000 000 -2) / 21


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#40 2010-03-07 14:50:42

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

Re: Is this cool with you?


Why did the vector cross the road?
It wanted to be normal.

Offline

#41 2010-03-07 15:56:14

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

Yeparooo! You have to admit it is a nasty question, especially after the other question.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#42 2010-03-07 18:09:43

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,843

Re: Is this cool with you?

Yes, that was nasty...especially so soon after the other one as I was still stuck in that thinking mode.

I was unable to spot the logic that I knew had to be the key to the solution and so I peeked at mathsyperson's great answer. Until then I could only offer

feeble response.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#43 2010-03-08 11:11:58

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

Yes, that was nasty...especially so soon after the other one as I was still stuck in that thinking mode.

You understand! When that problem was given to me it came after a long succession of problems that were of the first type. So I went along in a pavlovian way and succumbed to his sadistic trap.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#44 2010-03-08 11:55:31

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,843

Re: Is this cool with you?

I only checked to 2,000,000^2, heading towards 1,000,000,000^2, but was fast approaching Excel's 15-digit limit...which I'd reach at 31,622,776^2. So I was beginning to scratch my head...

...his sadistic trap

That character sounds like he's the spitting image of a bobbym clone.

Last edited by phrontister (2010-03-08 12:08:33)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#45 2010-03-09 15:47:53

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

What is the remainder of 9 ^ 1995 when divided by 7?

Who is right?


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#46 2010-03-09 23:12:41

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,843

Re: Is this cool with you?

Hi Bobby,

I did

.

I had a look at your answers but was in too much of a hurry and didn't understand them. I'll have a better look at them later...


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#47 2010-03-10 05:30:09

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

H phrontister;

What program did you use?


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#48 2010-03-10 08:50:55

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,843

Re: Is this cool with you?

I used BCalc, a freeware scientific calculator.

I also checked my answer with WolframAlpha...which automatically changed my 'int' function to the 'floor' function.

Last edited by phrontister (2010-03-10 09:14:23)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#49 2010-03-10 13:29:57

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 84,624

Re: Is this cool with you?

Hi;

If

Then what is 1 / x^4;

Is A right?


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

Online

#50 2010-03-11 01:03:49

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,843

Re: Is this cool with you?

Hi Bobby,

I think that A is

.

Last edited by phrontister (2010-03-14 11:45:03)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

Board footer

Powered by FluxBB