I define a "semi-square n " as a positive integer—which is not a square number—such that there exists a prime p satisfying p n = x 2 for some integer x .
How many semi-squares are there between 1 and 1 0 0 0 inclusive?
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.
thanks for the solution. This is a nice first idea
I did something similar, but I ran through the squares instead of the primes, so my formula would have been n = 1 ∑ ⌊ 5 0 0 ⌋ π ( ⌊ n 2 1 0 0 0 ⌋ )
I like yours better, just because of how many times I had to call pi(n) in wolfram alpha while adding mine.
Just an observation...if we define s ( n ) to be the number of semi-squares less than or equal to n , we have
s ( 1 0 0 0 ) = 2 π ( 1 0 0 0 ) + 1
This caught my eye, and as I had used a programme to find the answer, it was easy to check that
s ( 1 0 0 0 0 ) = 2 π ( 1 0 0 0 0 ) + 1 as well. Remarkably, it turns out this is a coincidence, and not in fact generally true; but it does seem to be true that s ( n ) is very close to 2 π ( n ) . I'm sure there's an excellent reason for this, but it eludes me at the moment - does anyone have any ideas why this might be?
Log in to reply
Interesting! For p > 2 n , there is precisely one semi-square less than n with p as a factor... p itself. The bulk of the semi-squares come from small primes.
In mathematica the one liner
Total[Table[PrimePi[1000/n^2],{n,1,31}]]
does the trick!
The idea is to take each of the squares and multiply them by prime numbers to produce semi-squares. Each entry in the table counts the number of semi-squares less than 1000 coming from each square.
Problem Loading...
Note Loading...
Set Loading...
We are looking for integers of the form n = m 2 p , where p is prime. If n ≤ 1 0 0 0 then m 2 ≤ p 1 0 0 0 and m ≤ p 1 0 0 0 . Thus we compute i = 1 ∑ π ( 1 0 0 0 ) ⌊ p i 1 0 0 0 ⌋ = i = 1 ∑ 1 6 8 ⌊ p i 1 0 0 0 ⌋ where π ( 1 0 0 0 ) = 1 6 8 is the prime-counting function (i.e. the number of primes less than 1 0 0 0 ) and p i denotes the i th prime number.
Evaluating the function computationally yields 3 3 7 . I welcome any insight into a simple way to evaluate the sum that can be done by hand.