Index   <<   >>

Take a number

(See the Constants page of the J Introduction and Dictionary)

What decimal numbers are 7b111 and _7b1111 ?

What is the decimal number equivalent to 1buzz ?

Write a numeric constant with value 2147483648 (2^31) in the fewest characters.

Answer the questions below based on the information in the following table. The entries were formed by taking a number such as _0.4b11111...1111111 (where _0.4=_2%5 and the number of 1s is enough so that the value is exactly the same as the umber with one fewer 1s) and applying the verb ra=.(,%+.)&1 to it, which yields 5 7 , and inserting 'r' between the two items of the result, and placing this in the table at the intersection of row _2 and column 5 . It is then true that the two numbers are equal:

   _0.4b11111...1111111 = 5r7
1

       1    2    3    4    5
 4                        5r1
 3                   4r1  5r2
 2              3r1  2r1  5r3
 1         2r1  3r2  4r3  5r4
 0    1r1  1r1  1r1  1r1  1r1
_1         2r3  3r4  4r5  5r6
_2              3r5  2r3  5r7
_3                   4r7  5r8
_4                        5r9

What entry would appear at row _2 column 7 ?

What entry would appear at row 3 column 11 ?

What is the general rule for determining the entry at row p and column q ?

(For answers, see someone at the Iverson Software booth.)