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.

A106587 Sum of n-th prime squared and n-th perfect square.

Original entry on oeis.org

5, 13, 34, 65, 146, 205, 338, 425, 610, 941, 1082, 1513, 1850, 2045, 2434, 3065, 3770, 4045, 4850, 5441, 5770, 6725, 7418, 8497, 10034, 10877, 11338, 12233, 12722, 13669, 17090, 18185, 19858, 20477, 23426, 24097, 26018, 28013, 29410, 31529, 33722
Offset: 1

Views

Author

Alexandre Wajnberg, May 10 2005

Keywords

Examples

			a(5)=146 because 121 (fifth prime^2) + 25 (fifth square) = 146.
		

Crossrefs

Programs

  • Magma
    [NthPrime(n)^2 + n^2: n in [1..50]]; // G. C. Greubel, Sep 07 2021
    
  • Mathematica
    Table[Prime[n]^2 + n^2, {n, 50}]
  • PARI
    a(n) = n^2 + prime(n)^2; \\ Michel Marcus, Sep 08 2021
  • Sage
    [nth_prime(n)^2 + n^2 for n in (1..50)] # G. C. Greubel, Sep 07 2021
    

Formula

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

Extensions

Extended by Ray Chandler, May 13 2005