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.

A384584 Numbers k such that A383844(k) = 2.

This page as a plain text file.
%I A384584 #6 Jun 09 2025 23:27:45
%S A384584 4,46,62,119,145,180,200,247,305,522,707,900,1235,1504,1532,1540,2396,
%T A384584 3140,4181,4231,6419,9066,9885,14292,17914,22696,33924,35933,38951,
%U A384584 80602
%N A384584 Numbers k such that A383844(k) = 2.
%C A384584 Numbers k such that there are exactly two m such that Sum_{i=1..t} m mod prime(i) for prime(t) <= m < prime(t+1) is equal to k (see A024934).
%C A384584 A383844(s) <= 3 for s <= 82000, with A383844(s) = 3 only for s = 0, 1, 8, 37, 781.
%e A384584 4 is a term since 7 and 10 are the only numbers r such that A024934(r) = 4.
%e A384584 46 is a term since 29 and 30 are the only numbers r such that A024934(r) = 46.
%e A384584 9066 is a term since 552 and 566 are the only numbers r such that A024934(r) = 9066.
%o A384584 (PARI) isok(n) = (count(n) = my(f, S=[], b); (f(m) = my(r=0); forprime(p=2, m, r+=m%p); return(r)); if(n<=21, b=26, b=n); for(k=0, b, if(f(k)==n, S=concat(S, k))); return(#S)); if(count(n)==2, return(1), return(0))
%Y A384584 Cf. A024934, A383844.
%K A384584 nonn,more
%O A384584 1,1
%A A384584 _Miles Englezou_, Jun 04 2025