On Mon, Nov 23, 2009 at 9:02 PM, Chris Burke <cbu...@jsoftware.com> wrote: >> http://www.jsoftware.com/jwiki/Doc/Articles/Play164 [see end-of-page] >> >> "Here are the rest of the questions Amy had to answer. See if you can >> answer them. >> A. What do you notice about the lockers that were touched by >> exactly two students? (Try m19 >: 2=dc )
primes=: p:@i...@# (-: primes)1+I. 2=dc 1 >> B. What do you notice about the lockers that were touched by >> exactly three students? (-: (>:*<:)@primes)I. 3=dc 1 >> C. What do you notice about the lockers that were touched by >> exactly four students? I am still thinking about this one. >> D. What was the first locker touched by both student 6 and student 8? 6 *.8 24 >> E. What do you notice about the student numbers of the students >> that touched both locker 24 and locker 36? */>:|:_ q: 24 36 8 9 They are 2^3 and 3^2 >> F. Which students touched both locker 100 and 120? What do you >> notice about their student numbers?" >> +++++ /:~ */ |: 2 3 5 ^"1 pfx 1 + 3 1 1 1 2 3 4 5 6 8 10 12 15 20 24 30 40 60 120 /:~ */ |: 2 5 ^"1 pfx 1 + 2 2 1 2 4 5 10 20 25 50 100 I am not sure exactly what he wanted me to notice here. FYI, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm