generalize powsum to allow a geometric factor