Cat Puzzle

Cerebral distractions of every kind, mostly but not exclusively Countdown-related.

Moderator: Michael Wallace

Post Reply
User avatar
Joseph Bolas
Fanatic
Posts: 2446
Joined: Mon Jan 21, 2008 9:19 am
Location: Liverpool, UK

Cat Puzzle

Post by Joseph Bolas »

Here is a maths puzzle taken from a PerplexCity card. Hopefully it ain't too easy.

The cat herders of Harbin have a long tradition of animal husbandry. But every year, they suffer a certain amount of natural wastage as cats stray from the fold. Over the centuries, these mathematically minded herders have calculated the minimum size for a profitable herd. See if you can figure it out from the herders' poem:

In Harbin, the cats, I declare,
They numbered one third of a square,
If a quarter then strayed,
Still a cube will have stayed,
How many, at least, must there be?
Paul Howe
Kiloposter
Posts: 1070
Joined: Tue Jan 22, 2008 2:25 pm

Re: Cat Puzzle

Post by Paul Howe »

972, I think.

You need to work through the list of cubes, multiply each one by 4, check its a square number and if so divide by 3 to get the answer. 9^3 = 729 is the first cube this works for (4*4^3 = 256 is a square too, but doesn't give an integer when dividing by 3), and 729*3/4 = 972
User avatar
Ben Wilson
Legend
Posts: 4547
Joined: Fri Jan 11, 2008 5:05 pm
Location: North Hykeham

Re: Cat Puzzle

Post by Ben Wilson »

Paul Howe wrote:972, I think.

You need to work through the list of cubes, multiply each one by 4, check its a square number and if so divide by 3 to get the answer. 9^3 = 729 is the first cube this works for (4*4^3 = 256 is a square too, but doesn't give an integer when dividing by 3).
1 also works but fails the second condition. ;)
Paul Howe
Kiloposter
Posts: 1070
Joined: Tue Jan 22, 2008 2:25 pm

Re: Cat Puzzle

Post by Paul Howe »

Ben Wilson wrote:
Paul Howe wrote:972, I think.

You need to work through the list of cubes, multiply each one by 4, check its a square number and if so divide by 3 to get the answer. 9^3 = 729 is the first cube this works for (4*4^3 = 256 is a square too, but doesn't give an integer when dividing by 3).
1 also works but fails the second condition. ;)
True, but you could hardly call that a herd . :ugeek:
User avatar
Ben Wilson
Legend
Posts: 4547
Joined: Fri Jan 11, 2008 5:05 pm
Location: North Hykeham

Re: Cat Puzzle

Post by Ben Wilson »

Paul Howe wrote:
Ben Wilson wrote:
Paul Howe wrote:972, I think.

You need to work through the list of cubes, multiply each one by 4, check its a square number and if so divide by 3 to get the answer. 9^3 = 729 is the first cube this works for (4*4^3 = 256 is a square too, but doesn't give an integer when dividing by 3).
1 also works but fails the second condition. ;)
True, but you could hardly call that a herd .
They may be several very unfortunate amputees.
Conor
Series 54 Champion
Posts: 541
Joined: Mon Jan 21, 2008 7:29 am
Location: Luton - UK

Re: Cat Puzzle

Post by Conor »

Yeah. I get 729 too (after some initial errors :p). You can make the checking process quicker by only cubing values divisible by 3.
Paul Howe
Kiloposter
Posts: 1070
Joined: Tue Jan 22, 2008 2:25 pm

Re: Cat Puzzle

Post by Paul Howe »

Conor wrote:Yeah. I get 729 too (after some initial errors :p). You can make the checking process quicker by only cubing values divisible by 3.
Very true. Its even quicker to ask MATLAB though ;)
User avatar
Joseph Bolas
Fanatic
Posts: 2446
Joined: Mon Jan 21, 2008 9:19 am
Location: Liverpool, UK

Re: Cat Puzzle

Post by Joseph Bolas »

Well done all, the answer is 972.

The way I solved this was to first off, find cubes divisible by 3 and then add one third to each of these (to give the number of cats, before 1 quarter strayed). I then multipled these numbers by 3 and worked out which one was a square.

It would take you just 3 cubes (27, 216 and 729), before you find the answer:

729 / 3 = 243,
729 + 243 = 972,
972 x 3 = 2916
√2916 = 54

Therefore the number of cats was 972 :D.
Post Reply