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.
%I A187785 #25 Jun 20 2024 09:16:44 %S A187785 1,2,2,2,2,2,2,3,1,2,3,2,4,0,2,2,3,4,1,3,1,3,3,3,2,3,2,3,2,2,4,2,7,1, %T A187785 3,2,1,6,4,4,3,1,3,2,3,6,3,6,0,3,3,2,6,2,4,1,3,4,3,3,4,4,1,1,1,3,3,6, %U A187785 2,2,2,2,7,1,3,3,2,5,2,5,2,1,5,1,4,1,4,4,1,3,2,3,4,2,3,4,2,5,1,3 %N A187785 Number of ways to write n=x+y (x,y>=0) with {6x-1,6x+1} a twin prime pair and y a triangular number. %C A187785 Conjecture: a(n)>0 for all n>48624 not equal to 76106. %C A187785 We have verified this for n up to 2*10^8. It seems that 723662 is the unique n>76106 which really needs y=0 in the described representation. %C A187785 Compare the conjecture with another Sun's conjecture associated with A132399. %D A187785 Zhi-Wei Sun, On sums of primes and triangular numbers, J. Comb. Number Theory 1(2009), no. 1, 65-76. %H A187785 Zhi-Wei Sun, <a href="/A187785/b187785.txt">Table of n, a(n) for n = 1..100000</a> %H A187785 Zhi-Wei Sun, <a href="http://maths.nju.edu.cn/~zwsun/109p.pdf">On sums of primes and triangular numbers</a>, J. Comb. Number Theory 1(2009), 65-76. %H A187785 Zhi-Wei Sun, <a href="http://arxiv.org/abs/1211.1588">Conjectures involving primes and quadratic forms</a>, arXiv:1211.1588 [math.NT], 2012-2017. %e A187785 a(9)=1 since 9=3+3(3+1)/2 with 6*3-1 and 6*3+1 both prime. %t A187785 a[n_]:=a[n]=Sum[If[PrimeQ[6(n-k(k+1)/2)-1]==True&&PrimeQ[6(n-k(k+1)/2)+1]==True,1,0],{k,0,(Sqrt[8n+1]-1)/2}] %t A187785 Do[Print[n," ",a[n]],{n,1,100}] %Y A187785 Cf. A001097, A000217, A132399, A187759, A187757, A219157. %K A187785 nonn %O A187785 1,2 %A A187785 _Zhi-Wei Sun_, Jan 06 2013