OFFSET
1,2
COMMENTS
A positive integer <= n that is relatively prime to n is called a totative of n.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..2000
Eric Weisstein's World of Mathematics, Totative
EXAMPLE
The sum of totatives of 9 is 1 + 2 + 4 + 5 + 7 + 8 = 27 = 3^3; therefore, 9 is a term of the sequence.
MATHEMATICA
g[n_] := Module[{r, i},
r = {};
For[i = 1, i <= n, i++,
If[GCD[n, i] == 1,
r = Append[r, i]]];
Apply[Plus, r]];
Select[Range[2*10^3], IntegerQ[g[#]^(1/3)] &]
PROG
(PARI) is(n)=ispower(n*eulerphi(n)/2, 3) || n==1 \\ Charles R Greathouse IV, Sep 21 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Feb 05 2014
EXTENSIONS
More terms from Alois P. Heinz, Feb 05 2014
STATUS
approved
