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.

This page as a plain text file.
%I A106587 #16 Sep 08 2022 08:45:18
%S A106587 5,13,34,65,146,205,338,425,610,941,1082,1513,1850,2045,2434,3065,
%T A106587 3770,4045,4850,5441,5770,6725,7418,8497,10034,10877,11338,12233,
%U A106587 12722,13669,17090,18185,19858,20477,23426,24097,26018,28013,29410,31529,33722
%N A106587 Sum of n-th prime squared and n-th perfect square.
%H A106587 G. C. Greubel, <a href="/A106587/b106587.txt">Table of n, a(n) for n = 1..1000</a>
%F A106587 a(n) = n^2 + prime(n)^2.
%e A106587 a(5)=146 because 121 (fifth prime^2) + 25 (fifth square) = 146.
%t A106587 Table[Prime[n]^2 + n^2, {n, 50}]
%o A106587 (Magma) [NthPrime(n)^2 + n^2: n in [1..50]]; // _G. C. Greubel_, Sep 07 2021
%o A106587 (Sage) [nth_prime(n)^2 + n^2 for n in (1..50)] # _G. C. Greubel_, Sep 07 2021
%o A106587 (PARI) a(n) = n^2 + prime(n)^2; \\ _Michel Marcus_, Sep 08 2021
%Y A106587 Cf. A000290, A001248, A014688, A075526, A076368.
%K A106587 easy,nonn
%O A106587 1,1
%A A106587 _Alexandre Wajnberg_, May 10 2005
%E A106587 Extended by _Ray Chandler_, May 13 2005