How many distinct integers from 1 to 1 million are either perfect squares or perfect cubes?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
3 1 0 6 = 1 0 2 = 1 0 0 ; 1 0 6 = 1 0 3 = 1 0 0 0 So there are 1 0 0 0 + 1 0 0 perfect squares and cubes. Wait! Aren't we missing the overlap? (Numbers that are both squares and cubes) Well, since, 3 1 0 6 = 1 0 0 There are 1 0 0 = 1 0 squares and cubing each of them gives 10 numbers that are both squares and cubes. Our final step is 1 1 0 0 − 1 0 = 1 0 9 0
Problem Loading...
Note Loading...
Set Loading...
There are 1 0 0 0 0 0 0 = 1 0 0 0 perfect squares in the given interval and 3 1 0 0 0 0 0 0 = 1 0 0 perfect cubes. There are also 6 1 0 0 0 0 0 0 = 1 0 perfect 6th powers (which are both squares and cubes). so there are 1 0 0 0 + 1 0 0 − 1 0 = 1 0 9 0 perfect squares and cubes.