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.

A231754 Products of distinct primes congruent to 1 modulo 4 (A002144).

This page as a plain text file.
%I A231754 #20 Mar 08 2024 08:08:51
%S A231754 1,5,13,17,29,37,41,53,61,65,73,85,89,97,101,109,113,137,145,149,157,
%T A231754 173,181,185,193,197,205,221,229,233,241,257,265,269,277,281,293,305,
%U A231754 313,317,337,349,353,365,373,377,389,397,401,409,421,433,445,449
%N A231754 Products of distinct primes congruent to 1 modulo 4 (A002144).
%C A231754 Contains A002144 as a subsequence, and is a subsequence of A016813 and of A005117.
%C A231754 Also, these numbers satisfy A231589(n) = floor(n*(n-1)/4) (A011848).
%H A231754 R. J. Mathar, <a href="/A231754/b231754.txt">Table of n, a(n) for n = 1..4999</a>
%H A231754 Rafael Jakimczuk, <a href="http://dx.doi.org/10.13140/RG.2.2.27745.48487">Generalizations of Mertens's Formula and k-Free and s-Full Numbers with Prime Divisors in Arithmetic Progression</a>, ResearchGate, 2024.
%H A231754 Shailesh A. Shirali, <a href="http://www.jstor.org/stable/2690862">A family portrait of primes-a case study in discrimination</a>, Math. Mag., Vol. 70, No. 4 (Oct., 1997), pp. 263-272.
%F A231754 The number of terms that do not exceed x is ~ c * x / sqrt(log(x)), where c = A088539 * sqrt(A175647) / Pi = 0.3097281805... (Jakimczuk, 2024, Theorem 3.10, p. 26). - _Amiram Eldar_, Mar 08 2024
%e A231754 65 = 5*13 is in the sequence since both 5 and 13 are congruent to 1 modulo 4.
%p A231754 isA231754 := proc(n)
%p A231754     local d;
%p A231754     for d in ifactors(n)[2] do
%p A231754         if op(2,d) > 1 then
%p A231754             return false;
%p A231754         elif modp(op(1,d),4) <> 1 then
%p A231754             return false;
%p A231754         end if;
%p A231754     end do:
%p A231754     true ;
%p A231754 end proc:
%p A231754 for n from 1 to 500 do
%p A231754     if isA231754(n) then
%p A231754         printf("%d,",n) ;
%p A231754     end if;
%p A231754 end do: # _R. J. Mathar_, Mar 16 2016
%t A231754 Select[Range[500], # == 1 || AllTrue[FactorInteger[#], Last[#1] == 1 && Mod[First[#1], 4] == 1 &] &] (* _Amiram Eldar_, Mar 08 2024 *)
%o A231754 (PARI) isok(n) = if (! issquarefree(n), return (0)); if (n > 1, f = factor(n); for (i=1, #f~, if (f[i, 1] % 4 != 1, return (0)))); 1
%Y A231754 Intersection of A005117 and A004613.
%Y A231754 Cf. A002144, A011848, A016813, A167181, A231589.
%Y A231754 Cf. A088539, A175647.
%K A231754 nonn,easy
%O A231754 1,2
%A A231754 _Michel Marcus_, Nov 13 2013