![]() |
Counting the unusually anal way.
If you were counting up through the positive integers, perhaps to pass the time, and you started at 1, but you skipped out numbers that were squares, cubes and quints, and planned on passing a LOT of time. What number would be at place number 10^30?
|
[quote=lavalamp;197423]If you were counting up through the positive integers, perhaps to pass the time, and you started at 1, but you skipped out numbers that were squares, cubes and quints[/quote]By "quints", you mean fifth powers, I presume, even though I find no such usage in a quick search. Would "septs" be next?
|
[QUOTE=lavalamp;197423]If you were counting up through the positive integers, perhaps to pass the time, and you started at 1, but you skipped out numbers that were squares, cubes and quints, and planned on passing a LOT of time. What number would be at place number 10^30?[/QUOTE]
You can't start at 1, it's a square. I think in place 1000000 you will find 1001101, and in place 10^30 you will find 1000000000000001000010000898910. I love and cherish the inclusion-exclusion principle. |
[quote=fivemack;197468]You can't start at 1, it's a square.
I think in place 1000000 you will find 1001101, < snip > I love and cherish the inclusion-exclusion principle.[/quote]Number of squares below 1002001 = 1000. Number of cubes below 1030301 = 100. Number of fifth powers below 1048576 = 15. Number of sixth powers below 1771561 = 10. Number of tenth powers below 1048576 = 3. Number of fifteenth powers below 14348907 = 2. Number of thirtieth powers below 2^30 = 1. 1000000 + 1000 + 100 + 15 - 10 - 3 - 2 + 1 = 1001101 (I had to write it all out to find my initial mistake: forgetting tenth powers.) |
[QUOTE=cheesehead;197453]By "quints", you mean fifth powers, I presume, even though I find no such usage in a quick search. Would "septs" be next?[/QUOTE]I do, and I guess they would.[QUOTE=fivemack;197468]You can't start at 1, it's a square.[/quote]Good point, I was just trying to get across that you don't start at 0, but then I suppose 0 is a perfect square and cube too, oh well.
I guess this puzzle didn't take too long to crack then, but perhaps it could be extended. I've tried to word this in the most specific way I know how, so hopefully the meaning is clear. For a prime p, find the positive integer number in 10[sup]p#[/sup] place, where p# is the primorial function, when you skip all prime powers up to and including p. I don't think there can be a forumla for this, since at some point you're going to end up skipping so many numbers there's another square number to account for skipping and then some more and then a cube and so on. However surely there is some algorithm that can output the correct answer. |
[QUOTE=lavalamp;197497]
<snip> I don't think there can be a forumla for this [/QUOTE] And you would be wrong. Such a formula exists. It is in the form of a product. Hint: Look up Mertens' Thm. |
[QUOTE=cheesehead;197484]Number of squares below 1002001 = 1000. Number of cubes below 1030301 = 100.[/QUOTE]How many of those squares are also cubes or ..... ?
|
[QUOTE=Uncwilly;197508]How many of those squares are also cubes or ..... ?[/QUOTE]
All of those squares which are also cubes are sixth powers, which is why he subtracts off the number of sixth powers. Except that some of those sixth powers are thirtieth powers, so he adds the number of thirtieth powers. |
[quote=cheesehead;197484][quote=fivemack;197468]I think in place 1000000 you will find 1001101,
< snip > I love and cherish the inclusion-exclusion principle.[/quote] 1000000 + 1000 + 100 + 15 - 10 - 3 - 2 + 1 = 1001101 [/quote]I should have mentioned [URL]http://mathworld.wolfram.com/Inclusion-ExclusionPrinciple.html[/URL] and [URL]http://en.wikipedia.org/wiki/Inclusion-exclusion_principle[/URL] |
[QUOTE=fivemack;197513]All of those squares which are also cubes are sixth powers, which is why he subtracts off the number of sixth powers.
Except that some of those sixth powers are thirtieth powers, so he adds the number of thirtieth powers.[/QUOTE] Look at the fraction that are NOT 2nd, 3rd, 5th powers etc. This fraction is given by a simple product formula as I stated. Look up Mertens' Theorem. |
| All times are UTC. The time now is 16:09. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.