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.

A238509 a(n) = |{0 < k < n: p(n) + p(k) - 1 is prime}|, where p(.) is the partition function (A000041).

This page as a plain text file.
%I A238509 #10 Feb 27 2014 22:35:12
%S A238509 0,1,1,2,2,3,2,1,1,2,1,2,3,4,1,4,5,2,1,5,2,1,1,3,5,2,3,2,2,4,7,3,2,2,
%T A238509 5,6,3,7,3,3,4,3,3,2,2,4,7,4,8,3,9,4,6,4,3,7,3,2,3,4,5,3,7,4,3,5,1,9,
%U A238509 10,6,8,2,3,3,6,6,3,1,2,7,1,6,5,2,6,8,3,4,1,1,1,9,12,3,2,3,8,4,3,2
%N A238509 a(n) = |{0 < k < n: p(n) + p(k) - 1 is prime}|, where p(.) is the partition function (A000041).
%C A238509 Conjecture: (i) a(n) > 0 for all n > 1. Also, if n > 2 is different from 8 and 25, then p(n) + p(k) + 1 is prime for some 0 < k < n.
%C A238509 (ii) If n > 7, then n + p(k) is prime for some 0 < k < n.
%C A238509 (iii) If n > 1, then p(k) + q(n) is prime for some 0 < k < n, where q(.) is the strict partition function given by A000009. If n > 2, then p(k) + q(n) - 1 is prime for some 0 < k < n. If n > 1 is not equal to 8, then p(k) + q(n) + 1 is prime for some 0 < k < n.
%H A238509 Zhi-Wei Sun, <a href="/A238509/b238509.txt">Table of n, a(n) for n = 1..10000</a>
%H A238509 Zhi-Wei Sun, <a href="http://arxiv.org/abs/1402.6641">Problems on combinatorial properties of primes</a>, arXiv:1402.6641, 2014.
%e A238509 a(11) = 1 since p(11) + p(10) - 1 = 56 + 42 - 1 = 97 is prime.
%e A238509 a(247) = 1 since p(247) + p(228) - 1 = 182973889854026 + 40718063627362 - 1 = 223691953481387 is prime.
%t A238509 p[n_,k_]:=PrimeQ[PartitionsP[n]+PartitionsP[k]-1]
%t A238509 a[n_]:=Sum[If[p[n,k],1,0],{k,1,n-1}]
%t A238509 Table[a[n],{n,1,100}]
%Y A238509 Cf. A000009, A000040, A000041, A232504, A238457.
%K A238509 nonn
%O A238509 1,4
%A A238509 _Zhi-Wei Sun_, Feb 27 2014