OFFSET
1,2
COMMENTS
Odd numbers k such that A051903(k) is even.
The asymptotic density of this sequence is (1/2) * Sum_{k>=2} (-1)^k * (1 - 2^k/((2^k-1)*zeta(k))) = 0.075617194130991839249... .
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
9 = 3^2 is a term since it is odd and 2 is even.
45 = 3^2 * 5 is a term since it is odd and 2 is even.
125 = 5^3 is not a term since 3 is odd.
MATHEMATICA
Select[Range[1, 1000, 2], # == 1 || EvenQ[Max[FactorInteger[#][[;; , 2]]]] &]
PROG
(PARI) isok(k) = if(k == 1, 1, k % 2 && !(vecmax(factor(k)[, 2]) % 2));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Mar 11 2025
STATUS
approved
