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

A135371 a(n) = prime(3^(n + 1)) - prime(3^n).

Original entry on oeis.org

3, 18, 80, 316, 1124, 3976, 13770, 46398, 155174, 512700, 1679218, 5454768, 17617664, 56578816, 180896064, 576041630, 1827788446, 5781493590, 18236550884, 57379347420, 180130119286, 564319058202, 1764618506934, 5508483994106, 17168384214168, 53431296170784
Offset: 0

Views

Author

Marvin Ray Burns, Dec 09 2007

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Prime[3^(n + 1)] - Prime[3^n], {n, 0, 26}]
  • PARI
    a(n) = prime(3^(n + 1)) - prime(3^n); \\ Michel Marcus, Nov 15 2020

Formula

a(n) = A038833(n+1) - A038833(n). - Jinyuan Wang, Nov 14 2020

Extensions

a(23)-a(25) from Jinyuan Wang, Nov 14 2020

A110896 Difference between prime(10^n) and prime(10^(n-1)).

Original entry on oeis.org

27, 512, 7378, 96810, 1194980, 14186154, 163938810, 1858650070, 20763688746, 229296037134, 2508629501894, 27235496973316, 293784284670498, 3151605249578196, 33649122286540910, 357782405858669892, 3790389667563960340, 40026493653364473662, 421463674881774896218
Offset: 1

Views

Author

Cino Hilliard, Sep 20 2005

Keywords

Examples

			The (10^1)th prime is 29. The (10^0)th prime is 2 and the difference is 27 the first entry.
		

Crossrefs

Programs

  • Mathematica
    Table[Prime[10^n] - Prime[10^(n - 1)], {n, 1, 12}] (* Marvin Ray Burns, Dec 09 2007 *)
    Differences[Table[Prime[10^n],{n,0,12}]] (* Harvey P. Dale, Jul 03 2017 *)
  • PARI
    a(n) = prime(10^n) - prime(10^(n-1)); \\ Jinyuan Wang, Nov 14 2020; adapted to offset by Georg Fischer, Jun 22 2022
    
  • Python
    from sympy import prime
    def a(n): return prime(10**n)-prime(10**(n-1))
    print([a(n) for n in range(1, 10)]) # Michael S. Branicky, Jun 22 2022

Formula

a(n) = A006988(n) - A006988(n-1) = prime(10^n) - prime(10^(n-1)). - Marvin Ray Burns, Dec 09 2007; corrected by Michel Marcus, Jun 22 2022

Extensions

Corrected and extended by Marvin Ray Burns, Dec 09 2007
More terms from Jinyuan Wang, Nov 14 2020
Showing 1-2 of 2 results.