Skip to content
The Chat Archive
Claudeclaude-opus-4-20250514-thinking-16k· Anthropic LMArena Human Preference 140K

Find all integer solutions for: x^y - y^x = 17

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Metallama-4-scout-17b-16e-instruct’s answer.
  1. User

    Find all integer solutions for: x^y - y^x = 17

  2. Assistant

    Looking at the equation x^y - y^x = 17, I need to find all integer pairs (x, y) that satisfy it.

    Let me start by checking some special cases:

    Case 1: x = 1 1^y - y^1 = 1 - y = 17 So y = -16

    Checking: 1^(-16) - (-16)^1 = 1 - (-16) = 17 ✓

    Case 2: y = 1
    x^1 - 1^x = x - 1 = 17 So x = 18

    Checking: 18^1 - 1^18 = 18 - 1 = 17 ✓

    Case 3: Small positive values Let me systematically check small positive integers:

    For x = 2:

    • y = 2: 2^2 - 2^2 = 0
    • y = 3: 2^3 - 3^2 = 8 - 9 = -1
    • y = 4: 2^4 - 4^2 = 16 - 16 = 0
    • y = 5: 2^5 - 5^2 = 32 - 25 = 7

    For x = 3:

    • y = 2: 3^2 - 2^3 = 9 - 8 = 1
    • y = 3: 3^3 - 3^3 = 0
    • y = 4: 3^4 - 4^3 = 81 - 64 = 17 ✓

    Found another solution: (3, 4)

    For x = 4:

    • y = 2: 4^2 - 2^4 = 16 - 16 = 0
    • y = 3: 4^3 - 3^4 = 64 - 81 = -17 (note this is negative)

    Analysis of larger values: For x, y ≥ 5, both x^y and y^x become very large. Since we need their difference to be exactly 17, and these functions grow exponentially, it's unlikely there are solutions with both x, y ≥ 5.

    Checking negative values: I should also check cases with negative integers, but these quickly lead to fractional values or grow/shrink too rapidly to yield 17.

    Final Answer: The complete set of integer solutions is:

    • (x, y) = (1, -16)
    • (x, y) = (18, 1)
    • (x, y) = (3, 4)

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.