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.

A103153 a(n) is the smallest odd prime p such that 2*n+1 = 2*p + A000040(k) for some k>1, or 0 if no such prime exists.

This page as a plain text file.
%I A103153 #22 Jul 23 2025 15:24:24
%S A103153 0,0,0,3,3,3,5,3,3,5,3,3,5,3,7,5,3,3,5,5,3,7,3,3,5,3,7,5,3,7,5,3,3,5,
%T A103153 5,3,7,3,3,5,5,3,7,3,19,5,3,7,5,11,3,11,3,3,5,3,3,5,3,7,5,11,7,11,11,
%U A103153 3,11,3,13,5,3,3,5,5,7,7,3,3,5,5,3,7,5,3,7,3,13,5,3,7,5,3,3,5,5,7,7,3
%N A103153 a(n) is the smallest odd prime p such that 2*n+1 = 2*p + A000040(k) for some k>1, or 0 if no such prime exists.
%H A103153 Hugo Pfoertner, <a href="/A103153/b103153.txt">Table of n, a(n) for n = 1..10000</a>
%e A103153 For n < 4 there are no such primes, thus a(1)-a(3)=0. For n=4, 2*4+1 = 9 = 2*3+3, thus a(4)=3. For n=7, 2*7+1 = 15 = 2*5+5, thus a(7)=7.
%t A103153 Do[m = 3; While[ ! (PrimeQ[m] && ((n - 2*m) > 2) && PrimeQ[n - 2*m]), m = m + 2]; Print[m], {n, 9, 299, 2}]
%o A103153 (Scheme) (define (A103153 n) (let ((ind (A103507 n))) (if (zero? ind) 0 (A000040 ind))))
%Y A103153 a(n)=0 if A103507(n)=0, otherwise A000040(A103507(n)).
%Y A103153 Cf. A103151, A103152, A002373.
%Y A103153 Cf. A195352 (similar definition, but p=2 is allowed).
%K A103153 nonn
%O A103153 1,4
%A A103153 _Lei Zhou_, Feb 09 2005
%E A103153 Edited and Scheme code added by _Antti Karttunen_, Jun 19 2007
%E A103153 Definition corrected by _Hugo Pfoertner_, Sep 16 2011