OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = n^2 + prime(n)^2.
EXAMPLE
a(5)=146 because 121 (fifth prime^2) + 25 (fifth square) = 146.
MATHEMATICA
Table[Prime[n]^2 + n^2, {n, 50}]
PROG
(Magma) [NthPrime(n)^2 + n^2: n in [1..50]]; // G. C. Greubel, Sep 07 2021
(Sage) [nth_prime(n)^2 + n^2 for n in (1..50)] # G. C. Greubel, Sep 07 2021
(PARI) a(n) = n^2 + prime(n)^2; \\ Michel Marcus, Sep 08 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Alexandre Wajnberg, May 10 2005
EXTENSIONS
Extended by Ray Chandler, May 13 2005
STATUS
approved