|
|
A132350
|
|
If n > 1 is a k-th power with k >= 2 then a(n) = 0, otherwise a(n) = 1.
|
|
6
|
|
|
1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(4) = 0 because 4 = 2^2.
a(8) = 0 because 8 = 2^3.
a(12) = 1 because 12 is not a perfect power (though it is divisible by a perfect power).
|
|
MATHEMATICA
|
Table[Boole[GCD@@FactorInteger[n][[All, 2]] == 1], {n, 100}] (* Alonso del Arte, May 28 2018 *)
|
|
PROG
|
(PARI) (a(n)=!ispower(n)); (r(nMax) = for(j=1, nMax, print1(!ispower(j)", "))); r(100)
(Haskell)
a132350 1 = 1
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|