OFFSET
1,2
COMMENTS
LINKS
FORMULA
Sum_{n>=1} 1/a(n) = (15/Pi^2) * (1 + Sum_{p prime} 1/((p-1)*(p^2+1))) = 1.92240214785252516795... .
MATHEMATICA
q[n_] := Module[{e = Sort[FactorInteger[n][[;; , 2]]]}, Length[e] == 1 || e[[-2]] == 2]; With[{max = 1300}, Select[Union@ Flatten@ Table[i^2 * j^3, {j, 1, max^(1/3)}, {i, 1, Sqrt[max/j^3]}], # == 1 || q[#] &]]
PROG
(PARI) is(k) = if(k == 1, 1, my(e = vecsort(factor(k)[, 2])); e[1] > 1 && (#e == 1 || e[#e - 1] == 2));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Nov 09 2024
STATUS
approved