|
Search: id:A069623
|
|
|
| A069623 |
|
Number of perfect powers <= n. |
|
+0 5
|
|
| 1, 1, 1, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12
(list; graph; listen)
|
|
|
OFFSET
|
1,4
|
|
|
LINKS
|
Eric Weisstein's World of Mathematics, Perfect Powers.
|
|
FORMULA
|
a(n) = n - Sum_{k = 1 to [log2(n)]} mu(k)*[n^(1/k)-1]), where mu = A008683. - David W. Wilson, Oct 09, 2002
|
|
EXAMPLE
|
a(27) = 7 as the perfect powers <= 27 are 1, 4, 8, 9, 16, 25 and 27.
|
|
MATHEMATICA
|
a[1] = 1; a[n_] := If[ !PrimeQ[n] && GCD @@ Last[Transpose[FactorInteger[n]]] > 1, a[n - 1] + 1, a[n - 1]]; Table[a[n], {n, 1, 85}]
(* Or *) b[n_] := n - Sum[ MoebiusMu[k] * Floor[n^(1/k) - 1], {k, 1, Floor[ Log[2, n]]}]; Table[b[n], {n, 1, 85}]
|
|
CROSSREFS
|
Perfect powers are A001597. Cf. A053289. A076411 is another version.
Sequence in context: A071136 A025425 A085501 this_sequence A076411 A072613 A029551
Adjacent sequences: A069620 A069621 A069622 this_sequence A069624 A069625 A069626
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Mar 27 2002
|
|
|
Search completed in 0.002 seconds
|