 All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars  perplexus dot info  Dicey numbers (Posted on 2009-03-27) A small number of standard dice were thrown. The total of the spots on the tops was a perfect square. Then the digits that represent each of the top numbers were placed in a row in increasing order to spell out a rather large number (a given digit may appear more than once, as in 12224).

The same thing was repeated with twice as many dice and again the total number of pips was a perfect square and a number formed by using the digits that represent the pips in ascending order was the square of the first number formed that way.

What were the two numbers formed by the digits representing the pips (the first number and its square)?

 Submitted by Charlie No Rating Solution: (Hide) ``` 33333334 1111111155555556 found by 100 dim H(30) 200 300 gosub *AddOne(1) 400 500 end 600 700 *AddOne(Lvl) 710 local I 800 if Lvl=1 then St=1:else St=H(Lvl-1) 900 for I=St to 6 1000 Tot=Tot+I 1100 Num=Num*10+I 1200 1300 H(Lvl)=I 1400 Sr=int(sqrt(Tot)+0.5) 1500 if Sr*Sr=Tot then 1600 :Num2=Num*Num 1700 :if Num2<999999999999999999999999999999999999 then 1800 :N\$=cutspc(str(Num)) 1900 :N2\$=cutspc(str(Num2)) 2000 :if len(N2\$)=2*len(N\$) then 2100 :Tot2=0 2200 :Good=1 2300 :for J=1 to len(N2\$) 2400 :Tot2=Tot2+val(mid(N2\$,J,1)) 2500 :if J>1 then if mid(N2\$,J,1) Subject Author Date Generalized solution Daniel 2009-03-29 03:10:33 re(2): edge of darkness / solution (pattern found) Dej Mar 2009-03-28 23:24:46 re: edge of darkness / solution (pattern found) Daniel 2009-03-28 00:22:38 edge of darkness / solution ed bottemiller 2009-03-27 18:16:40 Got too big Jer 2009-03-27 13:18:45 A starting observation. Jer 2009-03-27 12:56:37 Please log in:

 Search: Search body:
Forums (0)