Computing generation Vectors