<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def greenhall_table1(alpha, d):
 """ Table 1 from Greenhall 2004 """

    row_idx = int(-alpha+2) # map 2-> row0 and -4-> row6
    col_idx = int(d-1)
    table1 = [[(2.0/3.0, 1.0/3.0), (7.0/9.0, 1.0/2.0), (22.0/25.0, 2.0/3.0)], # alpha=+2
              [(0.840, 0.345), (0.997, 0.616), (1.141, 0.843)],
              [(1.079, 0.368), (1.033, 0.607), (1.184, 0.848)],
              [(-1, -1), (1.048, 0.534), (1.180, 0.816)], # -1
              [(-1, -1), (1.302, 0.535), (1.175, 0.777)], #-2
              [(-1, -1), (-1, -1), (1.194, 0.703)], #-3
              [(-1, -1), (-1, -1), (1.489, 0.702)], # alpha=-4
             ]
    #print("table1 = ", table1[row_idx][col_idx])
    return table1[row_idx][col_idx]