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-7 of 7 results.

A127796 a(n) = nextprime(9^n) - 9^n.

Original entry on oeis.org

1, 2, 2, 4, 2, 2, 16, 2, 26, 10, 8, 4, 2, 2, 26, 4, 70, 34, 2, 8, 118, 4, 8, 68, 56, 28, 50, 28, 62, 158, 16, 122, 92, 28, 20, 110, 140, 70, 28, 44, 20, 124, 316, 38, 8, 44, 136, 58, 110, 2, 148, 170, 116, 170, 40, 2, 182, 10, 46, 254, 56, 14, 8, 2, 190, 148, 382, 10, 56, 10
Offset: 0

Views

Author

Artur Jasinski, Jan 29 2007

Keywords

Crossrefs

Programs

  • Mathematica
    << NumberTheory`NumberTheoryFunctions` a = {}; Do[k = NextPrime[9^x] - 9^x; AppendTo[a, k], {x, 0, 100}]; a

Formula

a(n) = A013632(A001019(n)). - Michel Marcus, Nov 18 2019

A127797 Nextprime(11^n)-11^n.

Original entry on oeis.org

1, 2, 6, 30, 12, 2, 46, 20, 10, 2, 28, 62, 28, 42, 70, 30, 18, 20, 10, 18, 136, 102, 100, 30, 96, 6, 6, 68, 228, 30, 46, 48, 46, 32, 166, 36, 96, 42, 70, 278, 12, 108, 60, 42, 136, 68, 30, 18, 72, 36, 72, 30, 226, 252, 340, 126, 10, 42, 18, 182, 58, 18, 16, 120, 138, 36, 10
Offset: 0

Views

Author

Artur Jasinski, Jan 29 2007

Keywords

Crossrefs

Programs

  • Mathematica
    << NumberTheory`NumberTheoryFunctions` a = {}; Do[k = NextPrime[11^x] - 11^x; AppendTo[a, k], {x, 0, 100}]; a

A127798 Nextprime(12^n)-12^n.

Original entry on oeis.org

1, 1, 5, 5, 7, 7, 7, 25, 5, 31, 49, 31, 35, 25, 23, 11, 17, 29, 47, 103, 7, 5, 7, 23, 133, 19, 5, 13, 7, 215, 89, 5, 53, 89, 17, 35, 257, 29, 19, 193, 13, 121, 79, 71, 53, 61, 287, 61, 107, 125, 5, 203, 23, 119, 89, 5, 95, 61, 7, 29, 191, 211, 119, 31, 377, 37, 49, 89, 161, 5, 785
Offset: 0

Views

Author

Artur Jasinski, Jan 29 2007

Keywords

Crossrefs

Programs

  • Mathematica
    << NumberTheory`NumberTheoryFunctions` a = {}; Do[k = NextPrime[12^x] - 12^x; AppendTo[a, k], {x, 0, 100}]; a
    f[n_]:=Module[{c=12^n},NextPrime[c]-c]; f/@Range[0,100]  (* Harvey P. Dale, Mar 19 2011 *)

A127799 Nextprime(13^n)-13^n.

Original entry on oeis.org

1, 4, 4, 6, 10, 6, 4, 6, 18, 46, 4, 34, 22, 16, 58, 4, 72, 28, 42, 34, 30, 166, 60, 16, 136, 46, 94, 66, 276, 30, 70, 136, 70, 18, 60, 142, 228, 10, 462, 12, 28, 166, 138, 12, 376, 16, 180, 102, 222, 228, 102, 126, 108, 46, 24, 172, 162, 6, 114, 6, 108, 6, 72, 84, 22, 70
Offset: 0

Views

Author

Artur Jasinski, Jan 29 2007

Keywords

Crossrefs

Programs

  • Mathematica
    np13[n_]:=Module[{c=13^n},NextPrime[c]-c]; Array[np13,70,0] (* Harvey P. Dale, Mar 31 2012 *)

A127795 Nextprime(8^n)-8^n.

Original entry on oeis.org

1, 3, 3, 9, 3, 3, 3, 17, 43, 29, 3, 17, 31, 23, 15, 59, 21, 21, 159, 9, 33, 29, 9, 29, 15, 33, 7, 17, 3, 39, 133, 105, 61, 255, 267, 39, 33, 51, 43, 29, 451, 165, 7, 17, 67, 33, 87, 5, 175, 51, 147, 95, 45, 299, 19, 141, 87, 129, 7, 75, 15, 215, 205, 35, 133, 35, 15, 351, 7, 203
Offset: 0

Views

Author

Artur Jasinski, Jan 29 2007

Keywords

Comments

"Nextprime(k)" is not well-defined: it can mean the smallest prime >= k or the smallest prime > k. Of course here it does not matter. - N. J. A. Sloane, Jan 31 2007

Crossrefs

Programs

  • Mathematica
    np[n_]:=Module[{n8=8^n},NextPrime[n8]-n8]; Array[np,70,0] (* Harvey P. Dale, Jun 20 2011 *)

Extensions

Erroneous Mathematica program deleted by Harvey P. Dale, Jun 20 2011

A338376 (Smallest prime >= 6^n) - (largest prime <= 6^n).

Original entry on oeis.org

2, 6, 12, 6, 30, 14, 22, 18, 32, 12, 94, 54, 52, 18, 98, 66, 84, 18, 36, 18, 30, 138, 80, 96, 30, 142, 36, 80, 52, 26, 78, 64, 126, 138, 94, 136, 162, 276, 110, 162, 206, 94, 78, 324, 186, 128, 118, 56, 102, 390, 78, 90, 18, 62, 94, 108, 220, 100, 336, 618
Offset: 1

Views

Author

A.H.M. Smeets, Oct 26 2020

Keywords

Comments

Size of prime gap containing the number 6^n, for n > 1.
From Gauss's prime counting function approximation, the expected gap size should be approximately n*log(6), however, the observed values seem to be closer to n*log(36) = n*A016659.
The arithmetic mean of a(n)/n for the terms 1..1000 is 3.605 ~ 2*log(6).

Crossrefs

Cf. A058249 (2^n), A338155 (3^n), A338419 (5^n), A038804 (10^n).

Programs

  • Mathematica
    a[n_] := First @ Differences @ NextPrime[6^n, {-1, 1}]; Array[a, 60] (* Amiram Eldar, Oct 30 2020 *)
  • PARI
    a(n) = my(pw=6^n); nextprime(pw+1) - precprime(pw-1); \\ Michel Marcus, Oct 27 2020

Formula

a(n) = A013607(n) + A013600(n).

A309527 Numbers k such that 6^k + 17 is prime.

Original entry on oeis.org

1, 2, 3, 5, 8, 10, 19, 27, 79, 198, 565, 787, 2183, 3811, 4748, 6210, 7887, 8965, 13303, 20125, 23433, 28797
Offset: 1

Views

Author

Daniel Starodubtsev, Aug 06 2019

Keywords

Comments

a(20) > 14000. - Daniel Starodubtsev, Apr 17 2020

Examples

			3 is in the sequence because 6^3 + 17 = 233, which is prime.
		

Crossrefs

Programs

  • PARI
    lista(nn)=for(k=0,nn,if(ispseudoprime(6^k+17),print1(k", ")))

Extensions

a(17)-a(18) from Daniel Starodubtsev, Mar 16 2020
a(19) from Daniel Starodubtsev, Apr 17 2020
a(20)-a(22) from Michael S. Branicky, Mar 14 2023
Showing 1-7 of 7 results.