Jump to content
BrainDen.com - Brain Teasers
  • 0

sorting out a problem


phil1882
 Share

Question

currently i'm studying the sequence

1 2 3 5 7 8 11 12 13 17 19 20 23 27 28 29 30 31....

which is the odd product of prime numbers.

i'm curious to know if there is a good counting function for the number of them below say 10,000,000.

if so, can it be reversed to find approximately the nth odd product?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

phil1882,

1) The sequence starts off with "2," not "1," because 1 is not a prime number.

2) There are commas between the numbers in the sequence and a comma before the ellipsis.

3) You are missing the number 18. 18 = 2*3*3 (The number of prime factors is odd.)

Therefore, the sequence is:

2, 3, 5, 7, 8, 11, 12, 13, 17, 18, 19, 20, 23, 27, 28, 29, 30, 31, ...

Link to comment
Share on other sites

  • 0

When you're looking at large numbers, I would guess they'll usually have a large number of prime factors and would probably be equally likely to have an even as an odd number of factors. If you have reasonably efficient code to calculate factors, you could try counting them for say 50 consecutive large numbers to get a sense of whether or not they're equally likely to be odd as even.

If so, the counting function's approximation f(n) ~= number of terms less than n with a odd number of prime factors ~= n/2. And the n-th odd product would be roughly 2n.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...