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.

A287922 a(n) = prime(1)^2 + prime(n)^2.

Original entry on oeis.org

8, 13, 29, 53, 125, 173, 293, 365, 533, 845, 965, 1373, 1685, 1853, 2213, 2813, 3485, 3725, 4493, 5045, 5333, 6245, 6893, 7925, 9413, 10205, 10613, 11453, 11885, 12773, 16133, 17165, 18773, 19325, 22205, 22805, 24653, 26573, 27893, 29933, 32045, 32765, 36485
Offset: 1

Views

Author

XU Pingya, Jun 02 2017

Keywords

Crossrefs

Programs

  • Mathematica
    Table[4+Prime[n]^2, {n, 43}]
    Prime[Range[50]]^2+4 (* Harvey P. Dale, Feb 16 2020 *)
  • Python
    from sympy import prime, primerange
    def aupton(terms): return [4 + p*p for p in primerange(2, prime(terms)+1)]
    print(aupton(43)) # Michael S. Branicky, Aug 13 2021

Formula

a(n) = 4 + prime(n)^2.