Xmas Puzzle 2020 (1)

L D[AR2P#0.0]

Lifetime Supporting Member
Join Date
Nov 2006
Location
UK
Posts
6,695
Contruct three fractions all of the same value, using in every group all the nine digits once only. The fractions may be formed in the ways shown below. At least five different cases can be found, although one of the five may be considered contentious :)


Answers by PM.

frac.jpg
 
I request a clarification/disambiguation: is e.g. ghj equal to (g*100)+(h*10)+(j) or equal to (g*h*j)?


The former makes the most sense, but my mind went first to the latter.
 
which nine digits;)?


Brute force finds six solutions (actually four, two for each case, but a/b and c/d can be swapped in the left-hand case)
 
Each combination actually can be counted as two. Just invert b/a=d/c=


@drbitboy, I like brute force but why did you ignore b/a?
Also, once a/b are selected that narrows down the choice for c/d you can continue of a/b!=c/d. There is no point wasting time on the third fraction.


de is calculated twice. First as a decimal number, then as a hex number. Why multiply by 16.
 
Each combination actually can be counted as two. Just invert b/a=d/c=


@drbitboy, I like brute force but why did you ignore b/a?


Actually this was already covered here, although admittedly not in detail, and the statement above is wrong:

The alternate cases swap a/b and c/d (i.e. c/d=a/b=...); inverting those ratios (reciprocal) necessitates inverting the third ratio as well because numerator and denominator have different number of digits.


so inverting the ratios does not yield additional cases.



Also, once a/b are selected that narrows down the choice for c/d you can continue of a/b!=c/d. There is no point wasting time on the third fraction.


Actually I included that optimization: cf. the [(a*d)==(b*c)] test in the [if] statement on line 9.



de is calculated twice. First as a decimal number, then as a hex number. Why multiply by 16.


I was checking to see if the "contentious" case referred to hexadecimal numbers.


You didn't see that? Maybe you should not assume you are looking at code written by the paperboy.
 
Update - 5 solutions submitted by Steve Bailey - his contentious solution is different to mine so we now have at least 6 solutions of which two are contentious.


NB digits/numbers are decimal.
 
Update:

Initially I stopped looking once I found the fifth solution using my "contentious" methodology. Since Simon's response I've found three more solutions using the same contentious approach.

I think Simon's "contentious" solution is a different approach.
 
I'm now up to thirteen solutions. There are probably more to be found, but I haven't coded a search script.

Four non-contentious solutions.
Four more with my first "contentious" technique. which I agree could be considered contentious but different from Simon's contentious solution.
Five more using my second "contentious" technique, which I don't think is particularly contentious.
 
By the way,


LD...: great puzzle!


LD/SteveB: I look forward to seeing these "contentious" approaches; I'm drawing a blank so I got bupkis on that front.
 

Similar Topics

Two brothers were walking down the road. The first brother poses a question to the other: 'If I take the digits 1 through 9 and write them down...
Replies
4
Views
1,761
A mother and child walk down an escalator which is running at constant speed in the downward direction. Once on the escalator, the child walks...
Replies
5
Views
2,011
Find 3 palindromic numbers that, when added together, make 85709 (Numbers are in Base 10) Answers by pm please.
Replies
19
Views
6,478
It was too early for Easter, suppose I could have done Chinese New year, but that's too close to Valentines Day. Two parts : 1. A Logix5000...
Replies
1
Views
1,316
Another puzzle for you - answers by pm again. You have 30 coins which you want to deposit in a bank 10km away. A taxi takes you but can only...
Replies
9
Views
7,581
Back
Top Bottom