[go: up one dir, main page]

login
Search: a132384 -id:a132384
     Sort: relevance | references | number | modified | created      Format: long | short | data
If n is a k-th power with k >= 2 then a(n) = k, otherwise a(n) = 0.
+10
4
0, 0, 0, 2, 0, 0, 0, 3, 2, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 3, 0, 0, 0, 0, 5, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2
OFFSET
1,4
LINKS
MATHEMATICA
a[n_] := Boole[(g = GCD @@ FactorInteger[n][[;; , 2]]) > 1] * g; Array[a, 100] (* Amiram Eldar, Aug 13 2024 *)
PROG
(PARI) r(n) = for(j=1, n, print1(ispower(j)", "));
r(100)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 11 2007
STATUS
approved
Partial sums of A132351.
+10
2
1, 3, 6, 9, 13, 18, 24, 30, 36, 43, 51, 60, 70, 81, 93, 105, 118, 132, 147, 163, 180, 198, 217, 237, 257, 278, 299, 321, 344, 368, 393, 418, 444, 471, 499, 527, 556, 586, 617, 649, 682, 716, 751, 787, 824, 862, 901, 941, 981, 1022, 1064, 1107, 1151, 1196, 1242, 1289, 1337
OFFSET
1,2
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 11 2007
STATUS
approved

Search completed in 0.010 seconds