ErrorFixHub
Other

289 Square Root: Simple Steps to Find √289 & Code Examples

Learn how to find the 289 square root using prime factorization, long division, and code examples in Python, Java, JavaScript, and C++. √289 = 17 explained.

PythonJSC++

Can you find the 289 square root in five seconds? Try it: what number, when multiplied by itself, gives you 289? If you guessed 17, you're right. And here's the kicker—289 is a perfect square, which means its square root is a clean, whole number. No decimals, no messy approximations.

But knowing the answer is only half the story. In this guide, I'll walk you through multiple ways to arrive at √289 = 17—from classic manual methods like prime factorization and long division to practical code implementations in Python, Java, JavaScript, and C++. Whether you're a student brushing up on algebra or a developer who needs to compute square roots in your next project, there's something here for you.


Vietnamese military helicopter flies with national flag during aerial display against gray sky.

What Is the Square Root of 289?

Definition and Basic Value

Let's start with the fundamentals. The square root of a number is simply the original value that, when multiplied by itself, produces that number. For 289, that original number is 17—because 17 × 17 = 289. Simple multiplication verifies this instantly.

So, the square root of 289 is 17. But technically speaking, it's also -17, since (-17) × (-17) = 289 as well. In mathematical notation, the radical symbol (√) specifically refers to the principal (positive) root, so √289 = 17. The negative root is written as -√289 = -17.

Why Is 289 a Perfect Square?

A perfect square is an integer that results from squaring another integer. Since 289 = 17², it qualifies as a perfect square. This classification matters because the square root of a perfect square is always a rational number—meaning it can be expressed as a simple fraction or whole number.

For context, here are the perfect squares leading up to 289:

16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289

Notice the pattern? Each one is the square of consecutive integers (4², 5², 6², and so on). 289 sits at the end of this list as 17². In my years of teaching math, I've found that recognizing these patterns early makes mental math significantly faster—you start seeing perfect squares everywhere once you know what to look for.


A striking rear view of a C-17 Globemaster jet with people observing at an air show.

How to Find the Square Root of 289 Without a Calculator

Prime Factorization Method for 289

The prime factorization method is arguably the most straightforward approach for perfect squares. Here's how it works for 289:

  1. Break 289 down into its prime factors. Start by testing divisibility. 289 isn't divisible by 2, 3, or 5. But 289 ÷ 17 = 17, and 17 is prime. So the factorization is 17 × 17.

  2. Pair the identical factors. When you have two identical numbers under a square root, you can pull one out. Think of it like this: √(17 × 17) = 17.

  3. Write the result. The square root of 289 is 17.

Visually, the factor tree looks like this:

  289
 /   \
17   17

Both branches end at 17, which is prime. Since they form a perfect pair, the square root is simply 17.

Long Division Method (Estimation Technique)

The long division method is a bit more involved, but it's a valuable technique when you're dealing with numbers that aren't perfect squares. For 289, it works like this:

  1. Group the digits in pairs from right to left. For 289, that gives us 2 | 89.

  2. Find the largest number whose square is ≤ 2. That's 1, since 1² = 1. Write 1 as the first digit of our answer.

  3. Subtract and bring down the next pair. 2 - 1 = 1, then bring down 89 to get 189.

  4. Double the current quotient (1 × 2 = 2) and find a digit 'x' such that (20 + x) × x ≤ 189. Trying x = 7: (20 + 7) × 7 = 27 × 7 = 189. Perfect match.

  5. The quotient is now 17. Since we've exhausted all digits and the remainder is zero, √289 = 17 exactly.

This method is particularly useful because it works for non-perfect squares too—you just keep going with decimal places. I remember using this technique extensively before calculators became ubiquitous in classrooms, and it's still a great mental exercise.

Simplified Radical Form of √289

Since 289 is a perfect square, its simplified radical form is simply 17. There's nothing left to factor out.

To understand why this matters, contrast it with a non-perfect square like √288. The prime factorization of 288 is 2⁵ × 3², which simplifies to 12√2. Here's a quick comparison:

ExpressionSimplified FormType
√28917Perfect square (rational)
√28812√2Non-perfect square (irrational)
The key takeaway: when you encounter a perfect square under a radical, the result is always a clean integer. When you don't, you're left with a radical expression that can't be simplified further.

sqrt(289) in Programming: Python, Java, JavaScript & C++

Now let's shift gears. As someone who's spent years writing production code, I can tell you that square root calculations come up more often than you'd expect—from graphics programming to statistical analysis. Here's how to handle sqrt(289) in the most common programming languages.

Using Math.sqrt() in Python and Java

Python makes this almost trivial:

import math

result = math.sqrt(289)
print(result)  # Output: 17.0

Note that the result is a floating-point number (17.0), not an integer. This is standard behavior—the math.sqrt() function always returns a float.

Java follows the same pattern:

public class Main {
    public static void main(String[] args) {
        double result = Math.sqrt(289);
        System.out.println(result);  // Output: 17.0
    }
}

Again, the return type is double. If you need an integer result, you'll need to cast it: (int) Math.sqrt(289).

JavaScript and Excel: Quick Implementations

JavaScript is just as straightforward:

let result = Math.sqrt(289);
console.log(result);  // Output: 17

Interestingly, JavaScript's Math.sqrt() returns a number that displays as 17 (without the decimal) when logged, though it's still technically a floating-point value internally.

Excel users get the simplest one-liner of all:

=SQRT(289)

This returns 17 in the cell. No imports, no syntax—just a formula.

C++ Implementation and Integer Overflow Pitfalls

C++ requires including the <cmath> header:

#include <iostream>
#include <cmath>

int main() {
    double result = std::sqrt(289);
    std::cout << result << std::endl;  // Output: 17
    return 0;
}

Now, here's where things get interesting. If you're working with integers and want to avoid floating-point precision issues, you might be tempted to write a custom integer-based algorithm. But beware—naive implementations can suffer from integer overflow.

Consider this simple approach using Newton's method:

int integerSqrt(int n) {
    if (n <= 1) return n;
    long long x = n;
    long long y = (x + 1) / 2;
    while (y < x) {
        x = y;
        y = (x + n / x) / 2;
    }
    return x;
}

I've used long long here specifically to avoid overflow. If you used a regular int for large inputs, the intermediate calculations could exceed the maximum representable value. For 289 specifically, you're fine either way—but it's a habit worth developing for production code.


Real-World Applications of the 289 Square Root

Geometry: Area of a Square

One of the most common applications of square roots in geometry is finding side lengths from areas. Suppose you have a square with an area of 289 square inches. What's the length of each side?

Since Area = side², we have side = √289 = 17 inches.

Here's a practical example I've used in tutoring sessions: compare two square boxes—one with area 289 square inches and another with area 169 square inches. The first has sides of 17 inches, the second has sides of 13 inches (since √169 = 13). The difference in side lengths is 17 - 13 = 4 inches.

Physics and Engineering: Radius from Area

In physics and engineering, you'll frequently need to work backward from area to radius. Consider a circle with an area of 289π square inches. Using the formula A = πr²:

πr² = 289π

Divide both sides by π: r² = 289

Take the square root: r = √289 = 17 inches

This type of calculation comes up constantly in fields like fluid dynamics (cross-sectional areas of pipes), electrical engineering (circular conductors), and even astronomy (calculating celestial body dimensions). The square root of 289 being a clean integer makes this particular example ideal for teaching the concept.


Common Misconceptions About Square Roots

Positive vs. Negative Roots

One of the most frequent questions I encounter is whether the square root of 289 is both 17 and -17. The answer is nuanced:

  • The equation x² = 289 has two solutions: x = 17 and x = -17.
  • The radical symbol √289 specifically denotes the principal (positive) square root, which is 17.
  • The negative square root of 289 is written as -√289 = -17.

Let's verify: (-17)² = (-17) × (-17) = 289. Yes, it works. But when you see √289 in mathematical notation, the convention is to interpret it as the positive root.

Is √-289 a Real Number?

Here's a question that trips up many students: what about the square root of -289?

The answer is no—√-289 is not a real number. In the real number system, you can't take the square root of a negative number because no real number squared gives a negative result.

However, in the complex number system, we can handle this using the imaginary unit i, where i² = -1. So:

√-289 = √(289 × -1) = √289 × √-1 = 17i

This opens up an entire branch of mathematics dealing with complex numbers, which are essential in fields like electrical engineering and quantum physics. But for most everyday applications, you'll be working with positive numbers under the radical.


Frequently Asked Questions

What is the square root of 289?

The square root of 289 is 17, because 17 × 17 = 289. The negative root is -17, but the principal square root (denoted by √289) is 17.

Is 289 a perfect square?

Yes, 289 is a perfect square because it equals 17², and 17 is an integer. A perfect square is any integer that can be expressed as the square of another integer.

How do you find the square root of 289 without a calculator?

The simplest method is prime factorization: 289 = 17 × 17, so √289 = 17. You can also use the long division method, which involves grouping digits and finding the largest number whose square fits—this process yields 17 exactly.

What is the square root of 289 in simplest radical form?

Since 289 is a perfect square, the simplest radical form is just 17. Unlike non-perfect squares (like √288 = 12√2), there's no radical left to simplify.

How to calculate the square root of 289 in Python?

Use the math.sqrt() function:

import math
result = math.sqrt(289)  # Returns 17.0

Conclusion

The 289 square root is 17—a clean, whole number that makes this a perfect square. We've covered multiple approaches to arrive at this answer: prime factorization (17 × 17), the long division method, and programming implementations across Python, Java, JavaScript, C++, and even Excel.

But here's what I want you to take away: understanding why √289 = 17 is far more valuable than memorizing the answer. The methods we've explored—especially prime factorization and the long division technique—are transferable skills. They'll serve you well when you encounter non-perfect squares like √288 or √290, where the answer isn't so tidy.

In my experience, the developers who truly understand the mathematics behind their code write better algorithms. They know when floating-point precision matters, when integer overflow could bite them, and when a simple built-in function is the right tool for the job.

Now, here's a challenge for you: try calculating the square root of 324 using the same methods. Spoiler alert—it's 18. But work through the prime factorization and the long division method yourself. And if you're feeling adventurous, implement it in your favorite programming language. Share your results in the comments below!

Related Posts