Almost ready to publish APWJ Edn. Just need answers to these 2 problems, [3 of 4] and [4 of 4].
Ian On Wed, Nov 11, 2009 at 11:56 AM, Ian Clark <[email protected]> wrote: > In At Play With J Edn 1, there were 4 questions left as exercises for > the reader. In Edn 2 we want to provide the answers in an Appendix. > > Just so I don't get them wrong, could the forum please suggest what > the answers should be? You may have to refer to the Wiki page. > > I'm putting each question in a separate thread. > > +++++ > in: Ch 38 The Google Test > http://www.jsoftware.com/jwiki/Doc/Articles/Play211 [see end-of-page] > > Problem 2: Finding the sixth in a series > > You are given five 10-digit numbers from the digits of pi, and must > find the sixth. Here are the numbers: > > 4338327950 > 2795028841 > 6939937510 > 3993751058 > 2110555964 > > Here they are, embedded in pi: > > 7 30 $ w > 31415926535897932384626<4338327 > 95028841>971<693993751058>2097494 > 459230781640628620899862803482 > 534211706798214808651328230664 > 709384460955058223172535940812 > 84811174502841027019385<2110555 > 964>462294895493038196442881097 > > The first and second overlap, as do the third and fourth. > > I'll give two hints, the second vacuous: > > Hint 1: Primarily, the sixth number has three doublets and overlaps the fifth. > > Hint 2: Alternately, something for nothing. > +++++ > > > Ian Clark > Subeditor, APWJ Edn 2 > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
