citing seander for integer log function