OFFSET
1,2
COMMENTS
The formula in terms of A052409 and A052410 implies that the sequence is a permutation of the positive integers. - Franklin T. Adams-Watters, Jul 26 2006
FORMULA
a(n) = n^((b - (-1)^b) / b), b = gcd(b_1, ..., b_r) with prime factorization n = p_1^b_1*...*p_r^b_r. - Sascha Kurz, Aug 14 2002
EXAMPLE
a(15) = 15^2 = 225, but a(16) = 8 = 16^(3/4).
MAPLE
for n from 2 to 150 do a := ifactors(n); b := a[2][1][2]:for j from 2 to nops(a[2]) do b := gcd(b, a[2][j][2]); od; bb := floor(evalf(n^(1/b))); if(b mod 2=1) then c[n] := bb^(b+1) else c[n] := bb^(b-1); fi; od:c[1]=1:seq(c[j], j=1..150);
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 13 2002
EXTENSIONS
More terms from Sascha Kurz, Aug 14 2002
STATUS
approved