Wikipedia:Reference desk/Archives/Mathematics/2025 February 9

Mathematics desk
< February 8<< Jan | February | Mar >>February 10 >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


February 9

How to find a multiplier so that the resulting number is a small perfect square…

Simple question, let’s take a semiprime .
I want to find a number such as x×i is perfect square (the square root is an integer) but the resulting square is small than 2A01:E0A:401:A7C0:9407:59CB:EFF:777C (talk) 20:36, 9 February 2025 (UTC)[reply]

Is this a joke? If a square has a prime factor , it is divisible by If it has distinct prime factors , it is divisible by the lcm of , which, since all these are co-prime, equals So a square that is a multiple of is a multiple of  ‑‑Lambiam 21:35, 9 February 2025 (UTC)[reply]
IP, I don't know if you're still looking for an answer, but this is only possible for some numbers i. I'll start with a few examples before trying to discuss the general case.
  • First example: suppose i = 12. The prime factorization is 12 = 2x2x3 = . Notice that 2 is raised to an even power, but 3 is raised to an odd power. Since you're looking for x such that (x)(2^2)(3) is a perfect square, each prime in the the prime factorization of (x)(i) must be raised to an even power. In this case, if x=3, then (x)(i) = = 36, which is a perfect square that's smaller than = 144.
  • Second example: suppose i = 216. The prime factorization is 216 = 2x2x2x3x3x3 = . Notice that both 2 and 3 are raised to an odd power this time. Since you're looking for x such that (x)is a perfect square, one way for that to occur is if you let x=(2)(3), in which case (x)(i) = , which is a perfect square that's smaller than . Another way for this to occur is if you let x = , in which case (x)(i) = , which is again smaller than , and similarly if you let x = .
  • Third example: suppose i = 100. The prime factorization is 100 = 2x2x5x5 = . Notice that both 2 and 5 are raised to an even power this time. Since you're looking for x such that (x)is a perfect square, one way for that to occur is if you let x=, in which case (x)(i) = , which is a perfect square that's smaller than . Another way for this to occur is if you let x = , in which case (x)(i) = , which is again smaller than , and yet another way is if you let x = , in which case (x)(i) = , which is again smaller than .
  • Fourth example: suppose i = 30. The prime factorization is 30 = 2x3x5, where each prime is raised to an odd number, and all of the powers are equal to 1. The problem in this example is that the smallest x such that (x)(i) is a perfect square is x = (2)(3)(5). But in this case (x)(i) = , so there is no x that satisfies your condition of (x)(i) being smaller than .
Hopefully you can now move to the general case, where the prime factorization is i = p1a1p2a2...pnan. If all of the are equal to 1, there is no x that satisfies your condition. If one or more of the are greater than 1, then you choose x such that all of the primes in the the prime factorization of (x)(i) will be raised to an even power. The smallest x will be the product of the primes in the prime factorization of i that are raised to an odd power (e.g., if i = p1a1p2a2...pnan, and , and are all of the odd powers, then the smallest x is x = , and you'll also be able to find some other values for x by multiplying that smallest value by a small perfect square). FactOrOpinion (talk) 20:59, 16 February 2025 (UTC)[reply]
Note, though, that this implies that is not a semiprime as supposed in the question.  ‑‑Lambiam 04:14, 17 February 2025 (UTC)[reply]
You're right, I missed that is a semiprime. I also missed the trivial solution = 0. If we add the constraint that must be positive, then exists iff = for a prime > 2. Just let = for any whole number with 0 < < . FactOrOpinion (talk) 03:35, 18 February 2025 (UTC)[reply]
Uses material from the Wikipedia article Wikipedia:Reference desk/Archives/Mathematics/2025 February 9, released under the CC BY-SA 4.0 license.