View Single Post
2020-02-14, 12:15   #6
sweety439

Nov 2016

2·3·5·79 Posts

Quote:
 Originally Posted by enzocreti How many powers are there less than a given number x? Is there a function that "counts" the powers less than x? For example powers less than 10 are three (4,8,9)
powerpi(x)=floor(x^(1/2))+floor(x^(1/3))+floor(x^(1/5))+floor(x^(1/7))+floor(x^(1/11))+...

e.g. powerpi(9453)=97+21+6+3+2+2=131