Day 1: A Partridge in a Number Tree

A partridge sits in its tree. However, this is not a pear tree; it is a number tree! It rummages around until it finds a special type of number- let us call them partridge numbers.

Define a partridge number to be a number such that:

  1. It is a square number,
  2. It can be expressed in the form x 2 y 2 x 2 y 2 + 2 x^2y^2-x^2-y^2+2 where the positive integers x x and y y are not consecutive,
  3. It cannot be expressed in the form x 2 y 2 x 2 y 2 + 2 x^2y^2-x^2-y^2+2 for any consecutive positive integers x x and y y .

The first partridge number is between 1 1 and 2014 2014 . What number is it?

This problem is part of the set Advent Calendar 2014 .


The answer is 961.

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.

3 solutions

Michael Ng
Nov 30, 2014

From condition 1 and 2, notice that x 2 y 2 x 2 y 2 + 2 = n 2 x^2y^2-x^2-y^2+2 = n^2 for some integer n n which implies that: ( x 2 1 ) ( y 2 1 ) = n 2 1 (x^2-1)(y^2-1)=n^2-1

Notice that the equation above seems very symmetric. In fact now we can restate the problem to make it simpler:

In the set { 0 , 3 , 8 , 15 , 24 , 35 , 48 , } \{0, 3, 8, 15, 24, 35, 48, \cdots \} of all numbers less than 2014 2014 of the form a 2 1 a^2-1 for some integer a a , find an element that is:

  1. The product of two other elements,
  2. Not the product of two consecutive elements, that is, not in the set { 0 × 3 = 0 , 24 , 120 , 360 , 840 , 1680 } \{0 \times 3 = 0, 24, 120, 360, 840, 1680 \} (the following numbers are greater than 2014).

We can draw a small multiplication table with the products of elements. Then a bit of calculation (modular arithmetic can help to eliminate some cases) shows that 960 960 works and therefore the first partridge number is 961 \boxed{961} .

Put x=2 and y=11 then n=19. I think the first partridge should be 361. Please correct me if I am wrong.

souvik paul - 6 years, 6 months ago

Log in to reply

You were close; 361 does indeed satisfy condition 1 and 2, but doesn't satisfy condition 3 as x=4, y=5 works as well.

Michael Ng - 6 years, 6 months ago

Log in to reply

condition 3 states that x,y are not consecutive. since x=3., and y = 11 ., satisfy the given conditions that 361 must be the answer. I think u r seeing consecutive numbers BETWEEN the x=3., Y =11.,

Anil Ram - 6 years, 5 months ago

Log in to reply

@Anil Ram While x=3, y=11 is one way to arrive at 361, the fact that x=4, y=5 also arrives at the same number means there is a way to express 361 using the equation with consecutive numbers, therefore it fails condition 3, which states that this should not be possible, not that there is a way to do it without consecutive numbers. Michael Ng is correct.

Kunal Kantaria - 5 years, 9 months ago

I used x 2 1 = ( x 1 ) ( x + 1 ) x^2-1=(x-1)(x+1) for easy factorisation; looking at factors greatly helps estimate whether the equation for x , y , z x,y,z is satisfied.

Jakub Šafin - 6 years, 5 months ago

I arrived at ( x 2 1 ) ( y 2 1 ) = n 2 1 (x^2-1)(y^2-1)=n^2-1 , but could not figure out the next steps. Thank you for this solution.

Kunal Kantaria - 5 years, 9 months ago

what i not understand is condition 2 that u frame ( Not the product of two consecutive elements, that is, not in the set {0*3 = 0,24,120,...}

please explain with some more details .

Anil Ram - 6 years, 5 months ago
Patrick Corn
Dec 26, 2014

There is a family of solutions of the form ( x , y , n ) = ( a + 1 , 2 a 2 + 2 a 1 , 2 a 3 + 4 a 2 1 ) . (x,y,n) = (a+1,2a^2+2a-1,2a^3+4a^2-1). I generated these by setting n = x y a n = xy-a and getting a Pell equation when I tried to solve the resulting quadratic in y y . It's not hard to see that a = 1 a = 1 in general implies that x x and y y are consecutive. Putting a = 2 a= 2 yields ( 3 , 11 , 31 ) (3,11,31) .

This is by no means a complete solution (and that family is by no means the only family of points); I just thought it was pretty.

Imo it's still better than the method of checking repeatedly for different values.

Kunal Verma - 5 years, 10 months ago

Yes it is very pretty. I'm at a loss to understand how a human could have thought of this

Anirudh Chandramouli - 5 years, 1 month ago
Andreas Wendler
Jan 6, 2016

A little Visual Basic program helped finding possible candidates 361 and 961. Since 361 is cunstructible from x=4 / y=5 that follows from the solution of ( x 2 + x 1 ) 2 = 1 9 2 (x^{2}+x-1)^{2}=19^{2} it is to be excluded.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...