View Single Post
Old 2020-02-14, 12:15   #6
sweety439
 
sweety439's Avatar
 
Nov 2016

2·3·5·79 Posts
Default

Quote:
Originally Posted by enzocreti View Post
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
sweety439 is offline   Reply With Quote