A prime number problem from Bulgaria

Determine the sum of all the odd prime numbers p p satisfying:

for all prime number q q less than p p ,the integer ( \big( p p q q p-\Big\lfloor\frac{p}{q}\Big\rfloor q ) \big) is square-free.

Notation: \lfloor \cdot \rfloor denotes the floor function.


The answer is 28.

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.

2 solutions

Patrick Corn
Mar 13, 2018

Let f ( p , q ) = p p q q . f(p,q) = p-\lfloor \frac{p}{q} \rfloor q. Then f ( p , q ) f(p,q) is just the remainder upon dividing p p by q . q.

It's not hard to see that p = 3 , 5 , 7 , 13 p=3,5,7,13 have the given property and p = 11 p=11 does not (because f ( 11 , 7 ) = 4 f(11,7) = 4 is not squarefree). From now on, we will assume that p > 13. p>13.

If q q divides p 4 p-4 and q > 4 , q>4, then f ( p , q ) = 4 f(p,q)=4 and hence f ( p , q ) f(p,q) is not squarefree. Since p 4 p-4 is odd (and larger than 1), this implies that p 4 p-4 is only divisible by 3 3 ; that is, it's a power of 3. 3. So write p = 3 k + 4 p=3^k+4 for some k 3. k \ge 3.

If q q divides p 8 p-8 and q > 8 , q>8, then f ( p , q ) = 8 f(p,q)=8 and hence f ( p , q ) f(p,q) is not squarefree. Since p 8 p-8 is odd (and larger than 1), this implies that p 8 = 3 k 4 p-8=3^k-4 is only divisible by 3 , 5 , 3,5, or 7. 7. But 3 3 is impossible, so it's only divisible by 5 5 or 7. 7.

If q q divides p 9 p-9 and q > 9 , q>9, then f ( p , q ) = 9 f(p,q)=9 and hence f ( p , q ) f(p,q) is not squarefree. Since p 9 p-9 is not divisible by 3 3 (and larger than 1), this implies that p 9 = 3 k 5 p-9=3^k-5 is only divisible by 2 , 5 , 2,5, or 7. 7. But 5 5 is impossible, so it's only divisible by 2 2 or 7. 7.

If q q divides p 12 p-12 and q > 12 , q>12, then f ( p , q ) = 12 f(p,q)=12 and hence f ( p , q ) f(p,q) is not squarefree. Since p 12 p-12 is odd (and larger than 1), this implies that p 12 = 3 k 8 p-12 = 3^k-8 is only divisible by 3 , 5 , 7 , 3,5,7, or 11. 11. But 3 3 is impossible, so it's only divisible by 5 , 7 , 5,7, or 11. 11.

Now, 3 k 5 4 , 6 3^k-5 \equiv 4,6 mod 8 8 for all k , k, so 3 k 5 3^k-5 cannot be a power of 2 2 (since it's larger than 4). So it's divisible by 7. 7. So 3 k 4 3^k-4 and 3 k 8 3^k-8 can't be divisible by 7. 7. This implies that 3 k 4 3^k-4 is divisible by 5. 5. This implies that 3 k 8 3^k-8 is not divisible by 5. 5.

The upshot of the above paragraph is that 3 k 8 3^k-8 must be divisible by 11. 11. (Note that we are using p > 13 p>13 here, because that gives 3 k 8 > 1 , 3^k-8 > 1, so it must have at least one positive prime divisor, and 11 11 is the only one left.)

But 3 k 3 , 9 , 5 , 4 , 1 3^k \equiv 3,9,5,4,1 mod 11 , 11, so 3 k 8 3^k-8 cannot be divisible by 11. 11.

Hence no p > 13 p>13 has the given property, so the full list is p = 3 , 5 , 7 , 13 , p=3,5,7,13, which sum to 28 . \fbox{28}.

Happy to read such a lucid solution,thank you,sir Patrick Corn.

Haosen Chen - 3 years, 2 months ago
Giorgos K.
Mar 11, 2018

Just searched first 100 prime numbers using Mathematica

Total@Prime@Select[Range[2,100],And@@Table[SquareFreeQ[Prime@#-Floor[Prime@#/Prime@i]*Prime@i],{i,#-1}]&]

returns 28

The primes that have this property are 3, 5, 7, 13

Wow, but this isn't rigorous yet is it? But I can't understand Patrick's one... I just know for every prime p p larger than 13, there must exists a q q which is 4, 8, 12 or 16 (can be more maybe) lesser than p p so the answer is 3, 5, 7, and 13.

Kelvin Hong - 3 years, 2 months ago

Log in to reply

Can you justify your “there must exists” statement?

Patrick Corn - 3 years, 2 months ago

Log in to reply

I can't... I just verified that for q < 100 q<100 .

Kelvin Hong - 3 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...