login
A106587
Sum of n-th prime squared and n-th perfect square.
6
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,1
LINKS
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