You are not logged in.
He proved the 3 squares theorem.
But the point is any natural number can be represented by 4 squares or less. Does that spark your synapses? can you now solve the 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
I already knew that theorem. Why?
'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
Try to think like that computational guy we know. What would he do with that?
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
Please look at the link in post 38
'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
I remember your program and your level of understanding at that time. You are no longer that Agnishom, you are this Agnishom. That model is obsolete. You asked how to do it in M. I ask again, what does the previous posts make you think of?
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 ask again, what does the previous posts make you think of?
I understood nothing of the algorithm then, nor do I now. I just translated it from human language to a programming language.
'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
This problem recently came up on Brilliant https://brilliant.org/discussions/threa … e-theorem/
'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
So let's look at an easier problem. Supposing you want to break a number into 8 squares with M. How can you do it quickly? You know M can always get 4 squares for any number and darn quickly too. Why? Because Lagrange, Legendre, Gauss, Cayley and others say so.
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
You know M can always get 4 squares for any number and darn quickly too. Why?
No, It is taking forever for my 10 digit number.
'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
You are trying to get them all with that command. We are discussing how to get one answer.
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
No, 20
'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
But if you can not do 8, how can you do 20? We solve a bigger problem by breaking it up into many smaller ones. Each which is solvable. If you know how to do 4 then how do you do 8?
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
Please tell me what is the problem that I must solve now precisely
'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
Okay, you do not know the beginning solution so please open up another thread in Computer Math and ask the question clearly. Remember, others will be seeing it.
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
you do not know the beginning solution
Please tell me the question first.
'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
You want to know how to represent a 10 digit number as a sum of 20 squares. So post that as your question.
Right now you do not know how to even get it in 4 squares.
We will discuss the answer over there.
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
You want to know how to represent a 10 digit number as a sum of 20 squares.
Ofcourse not!
I want 20 ways to represent a 10 digit number as a sum of 4 squares.
Right now you do not know how to even get it in 4 squares.
Ofcourse I do!
'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
Not in Mathematica!
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 could translate that to M code but it would be a poor idea.
'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
Very poor. Generally, M is for functional or rule based programming. Procedural code is always slower.
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