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

You are not logged in.

## #26 2010-03-03 00:30:32

JaneFairfax
Legendary Member

Offline

### 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?

## #27 2010-03-03 13:40:22

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #28 2010-03-05 19:11:42

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #29 2010-03-07 09:05:18

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #30 2010-03-07 09:57:28

phrontister
Real Member

Offline

### Re: Is this cool with you?

Hi Bobby,

I get

integers.

Last edited by phrontister (2010-03-07 18: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

## #31 2010-03-07 13:02:32

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #32 2010-03-07 13:29:30

phrontister
Real Member

Offline

### Re: Is this cool with you?

Hi Bobby,

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

.

Last edited by phrontister (2010-03-07 18: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

## #33 2010-03-07 13:36:57

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #34 2010-03-07 19:47:37

phrontister
Real Member

Offline

### 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

## #35 2010-03-08 00:41:37

mathsyperson
Moderator

Offline

### 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.

## #36 2010-03-08 03:11:14

phrontister
Real Member

Offline

### 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-08 10: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

## #37 2010-03-08 10:19:11

mathsyperson
Moderator

Offline

### 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.

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.

## #38 2010-03-08 10:51:21

phrontister
Real Member

Offline

### 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...

"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

## #39 2010-03-08 12:47:38

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #40 2010-03-08 13:50:42

mathsyperson
Moderator

Offline

### Re: Is this cool with you?

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

## #41 2010-03-08 14:56:14

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #42 2010-03-08 17:09:43

phrontister
Real Member

Offline

### 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

## #43 2010-03-09 10:11:58

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #44 2010-03-09 10:55:31

phrontister
Real Member

Offline

### 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...

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

Last edited by phrontister (2010-03-09 11: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

## #45 2010-03-10 14:47:53

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #46 2010-03-10 22:12:41

phrontister
Real Member

Offline

### 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

## #47 2010-03-11 04:30:09

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #48 2010-03-11 07:50:55

phrontister
Real Member

Offline

### 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-11 08: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

## #49 2010-03-11 12:29:57

bobbym

Online

### 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.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #50 2010-03-12 00:03:49

phrontister
Real Member

Offline

### Re: Is this cool with you?

Hi Bobby,

I think that A is

.

Last edited by phrontister (2010-03-15 10: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