![]() |
|
|
#1 |
|
Oct 2007
Manchester, UK
53×11 Posts |
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?
|
|
|
|
|
|
#2 |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
By "quints", you mean fifth powers, I presume, even though I find no such usage in a quick search. Would "septs" be next?
|
|
|
|
|
|
#3 | |
|
(loop (#_fork))
Feb 2006
Cambridge, England
2·7·461 Posts |
Quote:
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. Last fiddled with by fivemack on 2009-12-01 at 15:16 |
|
|
|
|
|
|
#4 | |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22·3·641 Posts |
Quote:
1000000 + 1000 + 100 + 15 - 10 - 3 - 2 + 1 = 1001101 (I had to write it all out to find my initial mistake: forgetting tenth powers.) Last fiddled with by cheesehead on 2009-12-01 at 17:38 |
|
|
|
|
|
|
#5 | |
|
Oct 2007
Manchester, UK
53·11 Posts |
Quote:
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 10p# 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. |
|
|
|
|
|
|
#6 |
|
"Bob Silverman"
Nov 2003
North of Boston
1D8D16 Posts |
|
|
|
|
|
|
#7 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
22·2,767 Posts |
|
|
|
|
|
|
#8 |
|
(loop (#_fork))
Feb 2006
Cambridge, England
2·7·461 Posts |
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. |
|
|
|
|
|
#9 | |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
Quote:
http://mathworld.wolfram.com/Inclusi...Principle.html and http://en.wikipedia.org/wiki/Inclusi...sion_principle |
|
|
|
|
|
|
#10 | |
|
"Bob Silverman"
Nov 2003
North of Boston
5·17·89 Posts |
Quote:
This fraction is given by a simple product formula as I stated. Look up Mertens' Theorem. |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A counting problem | jasonp | Puzzles | 1 | 2017-12-24 19:38 |
| Path Counting | henryzz | Puzzles | 13 | 2014-09-17 11:21 |
| Help me help the planet while staying anal-retentive. | jasong | jasong | 0 | 2013-06-21 15:43 |
| unusually low P-1 bounds | ixfd64 | PrimeNet | 9 | 2011-04-02 18:45 |
| Unusually quiet | xilman | Lounge | 14 | 2008-12-30 23:21 |