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.

This page as a plain text file.
%I A287922 #13 Aug 13 2021 08:06:10
%S A287922 8,13,29,53,125,173,293,365,533,845,965,1373,1685,1853,2213,2813,3485,
%T A287922 3725,4493,5045,5333,6245,6893,7925,9413,10205,10613,11453,11885,
%U A287922 12773,16133,17165,18773,19325,22205,22805,24653,26573,27893,29933,32045,32765,36485
%N A287922 a(n) = prime(1)^2 + prime(n)^2.
%F A287922 a(n) = 4 + prime(n)^2.
%t A287922 Table[4+Prime[n]^2, {n, 43}]
%t A287922 Prime[Range[50]]^2+4 (* _Harvey P. Dale_, Feb 16 2020 *)
%o A287922 (Python)
%o A287922 from sympy import prime, primerange
%o A287922 def aupton(terms): return [4 + p*p for p in primerange(2, prime(terms)+1)]
%o A287922 print(aupton(43)) # _Michael S. Branicky_, Aug 13 2021
%Y A287922 Cf. A001248, A069484.
%K A287922 nonn,easy
%O A287922 1,1
%A A287922 _XU Pingya_, Jun 02 2017