[go: up one dir, main page]

login
A139179
Number of non-fourth-powers <= n.
1
0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70
OFFSET
0,4
FORMULA
a(n) = n - floor(n^(1/4)).
MATHEMATICA
a[n_] := n - Floor[n^(1/4)]; a /@ Range[0, 72] (* Giovanni Resta, Jun 21 2016 *)
PROG
(Python)
from sympy import integer_nthroot
def A139179(n): return n-integer_nthroot(n, 4)[0] # Chai Wah Wu, Jun 18 2024
CROSSREFS
Sequence in context: A296090 A323372 A295300 * A262437 A130909 A275993
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Jun 06 2008
EXTENSIONS
Offset corrected by Giovanni Resta, Jun 21 2016
STATUS
approved