From the example case

sum(17:19) = 36 = 6**2

sum(5:13) = 36 = 6**2

I'm able to tell that if several sequences produce the same sum they all have to be reported, but how do we handle duplicates on the power side of things?

for instance:

sum(20063:32987) and sum(2097031:2097287) both produce 33554432 (frist draft of my app, results could be wrong) no problem just report both lines, yet 33554432 gives an interesting sidecase being both 2^25 and 32^5.

Do we just pick one? if so which one should we pick? does it matter? do we pick both? if so how do we report?

like this

sum(20063:32987)=33554432=2**25=32**5

sum(2097031:2097287)=33554432=2**25=32**5

or like this:

sum(20063:32987)=33554432=2**25

sum(20063:32987)=33554432=32**5

sum(2097031:2097287)=33554432=2**25

sum(2097031:2097287)=33554432=32**5

Also note this problem is not limited to 2 duplicates, for instance sum(7063741:7064419) gives us 268435456 which I can make out of 2^28, 4^14, 16^7 and 128^4

Please advise.