OFFSET
0,7
FORMULA
a(n) = 2^n-A372889(n). - R. J. Mathar, May 31 2024
EXAMPLE
The greatest squarefree number <= 2^21 is 2097149, and 2^21 = 2097152, so a(21) = 3.
MATHEMATICA
Table[2^n-NestWhile[#-1&, 2^n, !SquareFreeQ[#]&], {n, 0, 100}]
CROSSREFS
Difference between 2^n and A372889.
A053797 gives lengths of gaps between squarefree numbers.
A061398 counts squarefree numbers between primes (exclusive).
A143658 counts squarefree numbers up to 2^n.
For primes between powers of 2:
- sum A293697 (except initial terms)
- length A036378
- max A014234
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 29 2024
STATUS
approved