mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2009-12-01, 05:09   #1
lavalamp
 
lavalamp's Avatar
 
Oct 2007
Manchester, UK

53×11 Posts
Default 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?
lavalamp is offline   Reply With Quote
Old 2009-12-01, 10:51   #2
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

22·3·641 Posts
Default

Quote:
Originally Posted by lavalamp View Post
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
By "quints", you mean fifth powers, I presume, even though I find no such usage in a quick search. Would "septs" be next?
cheesehead is offline   Reply With Quote
Old 2009-12-01, 15:16   #3
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

2×7×461 Posts
Default

Quote:
Originally Posted by lavalamp View Post
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?
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.

Last fiddled with by fivemack on 2009-12-01 at 15:16
fivemack is offline   Reply With Quote
Old 2009-12-01, 17:31   #4
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

170148 Posts
Default

Quote:
Originally Posted by fivemack View Post
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.
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.)

Last fiddled with by cheesehead on 2009-12-01 at 17:38
cheesehead is offline   Reply With Quote
Old 2009-12-01, 19:18   #5
lavalamp
 
lavalamp's Avatar
 
Oct 2007
Manchester, UK

25378 Posts
Default

Quote:
Originally Posted by cheesehead View Post
By "quints", you mean fifth powers, I presume, even though I find no such usage in a quick search. Would "septs" be next?
I do, and I guess they would.
Quote:
Originally Posted by fivemack View Post
You can't start at 1, it's a square.
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 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.
lavalamp is offline   Reply With Quote
Old 2009-12-01, 20:12   #6
R.D. Silverman
 
R.D. Silverman's Avatar
 
"Bob Silverman"
Nov 2003
North of Boston

5·17·89 Posts
Default

Quote:
Originally Posted by lavalamp View Post

<snip>

I don't think there can be a forumla for this
And you would be wrong. Such a formula exists. It is in the form
of a product.

Hint: Look up Mertens' Thm.
R.D. Silverman is offline   Reply With Quote
Old 2009-12-01, 21:24   #7
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

22·2,767 Posts
Default

Quote:
Originally Posted by cheesehead View Post
Number of squares below 1002001 = 1000. Number of cubes below 1030301 = 100.
How many of those squares are also cubes or ..... ?
Uncwilly is offline   Reply With Quote
Old 2009-12-01, 23:03   #8
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

645410 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
How many of those squares are also cubes or ..... ?
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.
fivemack is offline   Reply With Quote
Old 2009-12-02, 03:29   #9
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

11110000011002 Posts
Default

Quote:
Originally Posted by cheesehead View Post
Quote:
Originally Posted by fivemack View Post
I think in place 1000000 you will find 1001101,

< snip >

I love and cherish the inclusion-exclusion principle.
1000000 + 1000 + 100 + 15 - 10 - 3 - 2 + 1 = 1001101
I should have mentioned

http://mathworld.wolfram.com/Inclusi...Principle.html

and

http://en.wikipedia.org/wiki/Inclusi...sion_principle
cheesehead is offline   Reply With Quote
Old 2009-12-02, 11:27   #10
R.D. Silverman
 
R.D. Silverman's Avatar
 
"Bob Silverman"
Nov 2003
North of Boston

5×17×89 Posts
Default

Quote:
Originally Posted by fivemack View Post
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.
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.
R.D. Silverman is offline   Reply With Quote
Reply



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

All times are UTC. The time now is 16:09.


Fri Jul 7 16:09:25 UTC 2023 up 323 days, 13:37, 0 users, load averages: 1.58, 1.38, 1.21

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔