experimental more memory-efficient powsum