cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A336591 Numbers whose exponents in their prime factorization are either 1, 3, or both.

This page as a plain text file.
%I A336591 #16 Jan 19 2024 04:54:25
%S A336591 1,2,3,5,6,7,8,10,11,13,14,15,17,19,21,22,23,24,26,27,29,30,31,33,34,
%T A336591 35,37,38,39,40,41,42,43,46,47,51,53,54,55,56,57,58,59,61,62,65,66,67,
%U A336591 69,70,71,73,74,77,78,79,82,83,85,86,87,88,89,91,93,94,95
%N A336591 Numbers whose exponents in their prime factorization are either 1, 3, or both.
%C A336591 The asymptotic density of this sequence is zeta(6)/(zeta(2) * zeta(3)) * Product_{p prime} (1 + 2/p^3 - 1/p^4 + 1/p^5) = 0.68428692418686231814196872579121808347231273672316377728461822629005... (Cohen, 1962).
%C A336591 First differs from A036537 at n = 89. A036537(89) = 128 = 2^7 is not a term of this sequence.
%H A336591 Amiram Eldar, <a href="/A336591/b336591.txt">Table of n, a(n) for n = 1..10000</a>
%H A336591 Eckford Cohen, <a href="https://projecteuclid.org/euclid.pjm/1103036708">Arithmetical notes. III. Certain equally distributed sets of integers</a>, Pacific Journal of Mathematics, No. 12, Vol. 1 (1962), pp. 77-84.
%e A336591 1 is a term since it has no exponents, and thus it has no exponent that is not 1 or 3.
%e A336591 2 is a term since 2 = 2^1 has only the exponent 1 in its prime factorization.
%e A336591 24 is a term since 24 = 2^3 * 3^1 has the exponents 1 and 3 in its prime factorization.
%t A336591 seqQ[n_] := AllTrue[FactorInteger[n][[;;,2]], MemberQ[{1, 3}, #] &]; Select[Range[100], seqQ]
%o A336591 (Python)
%o A336591 from itertools import count, islice
%o A336591 from sympy import factorint
%o A336591 def A336591_gen(startvalue=1): # generator of terms >= startvalue
%o A336591     return filter(lambda n:all(e==1 or e==3 for e in factorint(n).values()),count(max(startvalue,1)))
%o A336591 A336591_list = list(islice(A336591_gen(),20)) # _Chai Wah Wu_, Jun 22 2023
%Y A336591 Intersection of A046100 and A036537.
%Y A336591 Intersection of A046100 and A268335.
%Y A336591 A005117 and A062838 are subsequences.
%Y A336591 Cf. A068468.
%K A336591 nonn
%O A336591 1,2
%A A336591 _Amiram Eldar_, Jul 26 2020