gluLookat() transforms the objects from world coordinates to camera coordinates.
gluPerspective() Applies perspective to the objects.
The origin is (0,0,0). You locate it where your vertices say.
If you want to know the right and top parameters of the frustum use:
top = n * tan((fov*0.5f) * PI / 180.0f);
r = top * (float)w/(float)h;
In your case fov = 45.
gluLookat() and gluPerspective() have different purposes, so their arguments have nothing to do with each other.
You can use instead of gluPerspective():
glFrustum(left,right,bottom,top,nearVal,farVal)