document power sum helper functions