OFFSET
0,5
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..127 (terms 0..90 from Daniel Suteu)
FORMULA
Sum_{k=0..n} a(k) = A062762(n). - Daniel Suteu, Feb 18 2020
EXAMPLE
64 < {72,81,100,108,121,125,128} <= 128, i.e., 7 powerful numbers are between 2^6 and 2^7, so a(7)=7.
PROG
(PARI) a(n) = my(ka = if (n==0, 1, 2^(n-1)+1)); #select(x->ispowerful(x), [ka..2^n]); \\ Michel Marcus, Aug 25 2019
(PARI) Q(n) = my(s=0); forsquarefree(k=1, sqrtnint(n, 3), s += sqrtint(n\k[1]^3)); s;
a(n) = if(n==0, 1, Q(2^n) - Q(2^(n-1))); \\ Daniel Suteu, Feb 18 2020
(Python)
# uses code from A062762
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 16 2001
EXTENSIONS
a(19)-a(29) from Daniel Suteu, Aug 25 2019
a(30)-a(45) from Daniel Suteu, Feb 18 2020
STATUS
approved