login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A231577 Number of ways to write n = x + y (x, y > 0) with 2^x + y*(y+1)/2 prime. 3
0, 1, 2, 1, 2, 2, 2, 2, 4, 3, 2, 2, 3, 3, 3, 3, 6, 3, 4, 2, 5, 3, 1, 4, 4, 3, 4, 3, 2, 4, 6, 3, 3, 7, 4, 7, 6, 5, 4, 5, 3, 7, 3, 4, 6, 6, 3, 4, 7, 4, 8, 6, 5, 11, 5, 5, 9, 7, 4, 7, 8, 5, 3, 1, 6, 5, 8, 4, 7, 5, 2, 8, 8, 7, 4, 3, 8, 7, 3, 3, 8, 8, 4, 8, 8, 5, 5, 7, 8, 6, 7, 8, 11, 6, 7, 9, 7, 6, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Conjecture: a(n) > 0 for all n > 1.
This implies that there are infinitely many primes each of which is a sum of a power of 2 and a triangular number.
See also A231201, A231555 and A231561 for other similar conjectures.
LINKS
EXAMPLE
a(23) = 1 since 23 = 9 + 14 with 2^9 + 14*15/2 = 617 prime.
a(64) = 1 since 64 = 14 + 50 with 2^{14} + 50*51/2 = 17659 prime.
MATHEMATICA
a[n_]:=Sum[If[PrimeQ[2^x+(n-x)(n-x+1)/2], 1, 0], {x, 1, n-1}]
Table[a[n], {n, 1, 100}]
CROSSREFS
Sequence in context: A060548 A140426 A146879 * A325590 A277210 A304777
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Nov 11 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 16:40 EDT 2024. Contains 371916 sequences. (Running on oeis4.)