OFFSET
1,1
COMMENTS
a(n) is 1-to-1.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
a(2) = 4 because 2 * 4 = 2^3;
a(10) = 80 because 10 * 80^2 = 40^3.
MATHEMATICA
Table[SelectFirst[n + Range[7 + n^2], AnyTrue[Power[#, 1/3] & /@ {n #, n #^2}, IntegerQ] &], {n, 57}] (* Michael De Vlieger, Feb 03 2018 *)
PROG
(PARI) a(n)=my(f=factor(n), tf=f, a, b); tf[, 2]%=3; b=factorback(tf); tf[, 2]=2*f[, 2]%3; a=factorback(tf); min((sqrtnint(n\a, 3)+1)^3*a, (sqrtnint(n\b, 3)+1)^3*b) \\ Charles R Greathouse IV, Oct 31 2016
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Peter Kagey, Oct 30 2016
STATUS
approved