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

You are not logged in.

## #1 2013-04-13 23:24:16

Agnishom
Real Member

Offline

### Four Square

Given a positive integer, suggest an algorithm to express it as the sum of four squares

'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'
'Who are you to judge everything?' -Alokananda

## #2 2013-04-14 00:16:44

bobbym

Offline

### Re: Four Square

Please give some constraints on the numbers you can 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.

## #3 2013-04-14 06:38:21

anonimnystefy
Real Member

Online

### Re: Four Square

I am guessing integers?

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #4 2013-04-14 06:39:20

bobbym

Offline

### Re: Four Square

He needs to define whether 0 is included or not.

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.

## #5 2013-04-14 12:00:44

Agnishom
Real Member

Offline

### Re: Four Square

Any thing .... Just liike bobbym does in Add 99 and post forever

'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'
'Who are you to judge everything?' -Alokananda

## #6 2013-04-14 12:17:19

anonimnystefy
Real Member

Online

### Re: Four Square

Here's a one-liner in Mathematica:

#### Code:

`PowersRepresentations[n,4,2]`

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #7 2013-04-14 12:20:06

Agnishom
Real Member

Offline

### Re: Four Square

I am aware of that but that does not teach me the algorithm

'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'
'Who are you to judge everything?' -Alokananda

## #8 2013-04-14 12:25:30

anonimnystefy
Real Member

Online

### Re: Four Square

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #9 2013-04-14 12:27:00

Agnishom
Real Member

Offline

### Re: Four Square

Hm, by the way, do you have Mathematica?

'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'
'Who are you to judge everything?' -Alokananda

## #10 2013-04-14 12:28:50

anonimnystefy
Real Member

Online

### Re: Four Square

I do.

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #11 2013-04-14 12:32:13

Agnishom
Real Member

Offline

### Re: Four Square

Why is it better than maxima or sage?

'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'
'Who are you to judge everything?' -Alokananda

## #12 2013-04-14 12:34:27

anonimnystefy
Real Member

Online

### Re: Four Square

That is more of a question for bobbym. I am just starting to try it out. I have a lot to learn. He has more experience with it and knows a lot things you can do in it.

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #13 2013-04-14 12:39:07

Agnishom
Real Member

Offline

### Re: Four Square

Which do you preffer, still?

'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'
'Who are you to judge everything?' -Alokananda

## #14 2013-04-14 12:41:55

anonimnystefy
Real Member

Online

### Re: Four Square

I do not know much about either to form an opinion.

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #15 2013-04-14 12:43:13

Agnishom
Real Member

Offline

### Re: Four Square

I thought you were an expert of Maxima

'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'
'Who are you to judge everything?' -Alokananda

## #16 2013-04-14 12:46:35

anonimnystefy
Real Member

Online

### Re: Four Square

How'd you get that idea?

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #17 2013-04-14 12:56:15

Agnishom
Real Member

Offline

### Re: Four Square

Wait, I will search the forum for the evidence.

'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'
'Who are you to judge everything?' -Alokananda

## #18 2013-04-14 12:57:47

anonimnystefy
Real Member

Online

### Re: Four Square

Okay. But, I do not think you can prove something that is not true...

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #19 2013-04-14 13:08:32

Agnishom
Real Member

Offline

### Re: Four Square

Well, I think I had misinterpreted someone's idea which made me believe this

'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'
'Who are you to judge everything?' -Alokananda

## #20 2013-04-14 13:10:42

anonimnystefy
Real Member

Online

### Re: Four Square

It is possible.

Which idea is that?

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #21 2013-04-14 13:15:52

Agnishom
Real Member

Offline

### Re: Four Square

#### bobbym wrote:

Sage is a powerful alternative and so is Maxima which comes with geogebra. That is what anonimnystefy used.

'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'
'Who are you to judge everything?' -Alokananda

## #22 2013-04-14 13:20:49

anonimnystefy
Real Member

Online

### Re: Four Square

It is what I used. Now I do not use it as much, because I an trying to learn working in M.

I think that gAr uses Sage, or at least used, so, if you are considering Sage, I think he might know stuff about it.

As for Maxima, I would be glad to help with anything, as long as I know it myself.

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #23 2013-04-14 13:22:57

Agnishom
Real Member

Offline

### Re: Four Square

Another M?

'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'
'Who are you to judge everything?' -Alokananda

## #24 2013-04-14 13:24:02

anonimnystefy
Real Member

Online

### Re: Four Square

There is only one M.

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #25 2013-04-14 13:29:15

Agnishom
Real Member

Offline

### Re: Four Square

Maxima, Mathematica

'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'
'Who are you to judge everything?' -Alokananda