Ask your own question, for FREE!
Mathematics 14 Online
OpenStudy (blockcolder):

Little brain teaser: Among the natural numbers between 1 and 1,000,000, which are there more of: numbers that can be expressed as the sum of a perfect square and a positive perfect cube, or numbers that cannot be?

OpenStudy (anonymous):

My immediate reactions is that it has to be the second thing, but reactions tend to be iffy with these kinds of questions =/

OpenStudy (inkyvoyd):

Eh.

OpenStudy (lgbasallote):

42!!! IT'S DEFINITELY 42!!!

OpenStudy (inkyvoyd):

Can i write a programming solution?

OpenStudy (blockcolder):

I probably wouldn't understand it. :(

OpenStudy (inkyvoyd):

So, I'm going to write a programming solution then.

OpenStudy (inkyvoyd):

Wait, I dunno how to.

OpenStudy (inkyvoyd):

is 0 a perfec square?

OpenStudy (blockcolder):

Yeah.

OpenStudy (inkyvoyd):

So, we have all the perfect cubes.

OpenStudy (inkyvoyd):

that's 100 numbers.. Adding time.

OpenStudy (inkyvoyd):

Then, all the perfect cubes plus 1.

OpenStudy (inkyvoyd):

Then, all the perfect cubes plus 4.

OpenStudy (inkyvoyd):

100+99+99+boring. I'm out.

OpenStudy (kinggeorge):

Forgive my posting so late, but I believe there are more numbers that can't be expressed as a sum of a square and a cube. We know there are 1001 numbers that are perfect squares less than 1000000 (including 0), and 101 numbers that are perfect cubes less than 1000000 (including 0). Thus, the obvious upper bound on the most numbers we could possibly have that are a sum of a square and a cube is \(1001*101=101101\) which is less than 500000. Note that this isn't including any repeated numbers, and many of these combinations will result in numbers over 1000000. This means that there are far more numbers that cannot be expressed as the sum of a perfect square and a positive perfect cube between 1, 1000000.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!