Re: Enigma 1504 - All ten digits



On 10 Sep, 09:04, Chappy <petergregorychap...@xxxxxxxxxxx> wrote:
Enigma 1504 - All ten digits
New Scientist magazine, 26 July 2008.
By Richard England.

Harry has chosen some 5-digit perfect
squares (all different) which use only the
digits 0 to 4, none of them starting or
finishing with the digit 0.  Each of the
digits 0 to 4 is used a different number of
times in his squares, those numbers of times
being 5 to 9.

(1) Which eligible square or squares has
    Harry NOT chosen?

Tom has chosen some 5-digit perfect squares
which only use the digits 5 to 9.  Each of
the digits 5 to 9 is used a different number
of times in his squares, those numbers of
times being 0 to 4.

(2) Which squares has Tom chosen?

Ciao,
Chappy.

A.

Start by generating all the valid 5 digit squares that do not start or
end with 0 and contain only the digits 0, 1, 2, 3 or 4....

10201
10404
12321
22201
23104
32041
33124
40401

3 is only present 5 times, so all numbers with 3 in them must be
present (12321,23104,32041,33124).
This gives us three 4s - since the only other numbers have two 4s in
them, and we already have five 3s, both 40401 and 10404 must also be
included.
Add 10201 to the list gives five 3s, six 2s, seven 4s, eight 0s and
nine 1s, so the only digit not used is 22201.

B.

Again, generate valid 5 digit squares that only contain digits 5, 6,
7, 8 or 9....

55696
69696
97969
98596
99856

We are only going to be able to use 2 numbers (1 + 2 + 3 + 4 = 10
digits = 2 five digit numbers). It is relatively trivial to find the
two numbers used are 55696 and 97969
.



Relevant Pages

  • Re: solving two of nonlinear equations and two unknwons.
    ... Solves a nonlinear least squares problem subject to bounds on the ... digits, and f values in processing are: ... this would yield horribly wrong derivatives and hence chaotic ...
    (sci.math.num-analysis)
  • Re: linalg[leastsqrs] in Maple V R4
    ... I have decided to write my own leastsqrs routine using linalg ... which seems to be a bit more consistent. ... the least squares solution is ... close, at least in the first few digits, to the linalg ...
    (sci.math.symbolic)
  • Re: SMSU Problem Corner (oops!)
    ... The only 4-digit squares with the same first and last digits ... and 5-digits triangular numbers with the same first and last digits ... None of the second squares with the second-highest digit matching ...
    (sci.math)
  • Re: Sudoku
    ... this variation seems to be relatively new. ... in each of the squares. ... sets of possible digits per box in partial solutions. ... The preferred oriental way of solving is to use a 3 by 3 dot array in ...
    (alt.lang.asm)
  • Re: Enigma 1553 - Squares from square
    ... these 16 squares. ... The sum of the four digits in each column is ... There is no way of choosing four of these from the 19 list to sum to 19. ...
    (rec.puzzles)