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.

Showing 1-3 of 3 results.

A233390 a(n) = |{0 < k < n: 2^k - 1 + q(n-k) is prime}|, where q(.) is the strict partition function (A000009).

Original entry on oeis.org

0, 1, 1, 1, 2, 1, 2, 2, 2, 1, 4, 4, 4, 2, 3, 2, 3, 3, 7, 4, 4, 5, 3, 4, 5, 5, 5, 6, 7, 6, 5, 4, 4, 9, 3, 6, 6, 5, 4, 7, 1, 4, 5, 6, 9, 6, 8, 6, 8, 4, 5, 8, 7, 4, 3, 4, 7, 6, 6, 3, 6, 5, 6, 4, 6, 8, 7, 8, 4, 5, 3, 6, 7, 7, 3, 10, 7, 5, 6, 10, 4, 8, 4, 6, 7, 6, 8, 10, 4, 6, 8, 9, 5, 6, 5, 7, 13, 5, 5, 6
Offset: 1

Views

Author

Zhi-Wei Sun, Dec 08 2013

Keywords

Comments

Conjecture: a(n) > 0 for all n > 1.
We have verified this for n up to 150000. For n = 124669, the least positive integer k with 2^k - 1 + q(n-k) prime is 13413.

Examples

			a(6) = 1 since 2^2 - 1 + q(4) = 3 + 2 = 5 is prime.
a(10) = 1 since 2^4 - 1 + q(6) = 15 + 4 = 19 is prime.
a(41) = 1 since 2^{16} - 1 + q(25) = 65535 + 142 = 65677 is prime.
a(127) = 1 since 2^{21} - 1 + q(106) = 2097151 + 728260 = 2825411 is prime.
a(153) = 1 since 2^{70} - 1 + q(83) = 1180591620717411303423 + 101698 = 1180591620717411405121 is prime.
a(164) = 1 since 2^{26} - 1 + q(138) = 67108863 + 8334326 = 75443189 is prime.
		

Crossrefs

Programs

  • Mathematica
    a[n_]:=Sum[If[PrimeQ[2^k-1+PartitionsQ[n-k]],1,0],{k,1,n-1}]
    Table[a[n],{n,1,100}]

A233393 Primes of the form 2^k - 1 + q(m) with k > 0 and m > 0, where q(.) is the strict partition function (A000009).

Original entry on oeis.org

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 37, 41, 43, 47, 53, 61, 67, 71, 73, 79, 83, 101, 107, 109, 127, 131, 137, 139, 149, 157, 167, 173, 181, 191, 193, 199, 223, 229, 257, 263, 269, 271, 277, 293, 311, 331, 347, 349, 359, 383, 397, 421, 449, 463, 467, 479, 521, 523, 557, 587
Offset: 1

Views

Author

Zhi-Wei Sun, Dec 08 2013

Keywords

Comments

Conjecture: The sequence has infinitely many terms.
This follows from the conjecture in A233390.

Examples

			a(1) = 2 since 2^1 - 1 + q(1) = 1 + 1 = 2.
a(2) = 3 since 2^1 - 1 + q(3) = 1 + 2 = 3.
a(3) = 5 since 2^2 - 1 + q(3) = 3 + 2 = 5.
		

Crossrefs

Programs

  • Mathematica
    Pow[n_]:=Pow[n]=Mod[n,2]==0&&2^(IntegerExponent[n,2])==n
    n=0
    Do[Do[If[Pow[Prime[m]-PartitionsQ[k]+1],
    n=n+1;Print[n," ",Prime[m]];Goto[aa]];If[PartitionsQ[k]>=Prime[m],Goto[aa]];Continue,{k,1,2*Prime[m]}];
    Label[aa];Continue,{m,1,110}]

A233359 a(n) = |{0 < k < n: L(k) + q(n-k) is prime}|, where L(k) is the k-th Lucas number (A000204), and q(.) is the strict partition function (A000009).

Original entry on oeis.org

0, 1, 1, 2, 3, 1, 2, 4, 2, 2, 3, 3, 2, 4, 3, 5, 1, 4, 5, 3, 1, 3, 3, 7, 3, 3, 4, 5, 2, 2, 9, 2, 4, 4, 9, 2, 6, 6, 6, 3, 3, 1, 5, 7, 4, 4, 5, 7, 4, 9, 5, 6, 4, 1, 5, 6, 11, 9, 4, 2, 5, 5, 4, 6, 8, 9, 12, 3, 7, 5, 4, 10, 6, 7, 6, 3, 5, 8, 4, 4, 4, 4, 7, 7, 5, 1, 4, 9, 7, 4, 8, 7, 6, 5, 2, 3, 7, 11, 5, 5
Offset: 1

Views

Author

Zhi-Wei Sun, Dec 08 2013

Keywords

Comments

Conjecture: a(n) > 0 for all n > 1.
We have verified this for n up to 60000.
Note that for n = 19976 there is no k = 0,...,n such that F(k) + q(n-k) is prime, where F(0), F(1), ... are the Fibonacci numbers.

Examples

			a(7) = 2 since L(1) + q(6) = 1 + 4 = 5 and L(6) + q(1) = 18 + 1 = 19 are both prime.
a(17) = 1 since L(13) + q(4) = 521 + 2 = 523 is prime.
a(21) = 1 since L(5) + q(16) = 11 + 32 = 43 is prime.
a(42) = 1 since L(22) + q(20) = 39603 + 64 = 39667 is prime.
a(54) = 1 since L(8) + q(46) = 47 + 2304 = 2351 is prime.
a(86) = 1 since L(67) + q(19) = 100501350283429 + 54 = 100501350283483 is prime.
		

Crossrefs

Programs

  • Mathematica
    a[n_]:=Sum[If[PrimeQ[LucasL[k]+PartitionsQ[n-k]],1,0],{k,1,n-1}]
    Table[a[n],{n,1,100}]
Showing 1-3 of 3 results.