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.

A269790 Primes p such that 2*p + 79 is a square.

This page as a plain text file.
%I A269790 #25 Sep 08 2022 08:46:16
%S A269790 73,181,2341,4861,6121,9901,12601,18973,20161,26641,47701,51481,59473,
%T A269790 61561,68041,79561,81973,84421,94573,110881,157321,185401,192781,
%U A269790 207973,231841,244261,248473,270073,292573,335341,365473,440821,446473,452161,475273
%N A269790 Primes p such that 2*p + 79 is a square.
%C A269790 Primes of the form 2*k^2 + 2*k - 39.
%C A269790 2*p + h is not verified if h is an odd prime that belongs to A055025 because (2*h-1)/2 is a multiple of 2.
%e A269790 a(1) = 73 because 2*73 + 79 = 225, which is a square.
%t A269790 Select[Prime[Range[50000]], IntegerQ[Sqrt[2 # + 79]] &]
%o A269790 (Magma) [p: p in PrimesUpTo(600000) | IsSquare(2*p+79)];
%o A269790 (PARI) lista(nn) = {forprime(p=2, nn, if(issquare(2*p + 79), print1(p, ", "))); } \\ _Altug Alkan_, Mar 24 2016
%o A269790 (Python)
%o A269790 from sympy import isprime
%o A269790 from gmpy2 import is_square
%o A269790 for p in range(0,1000000):
%o A269790     if(is_square(2*p+79) and isprime(p)):print(p)
%o A269790 # _Soumil Mandal_, Apr 03 2016
%Y A269790 Cf. A000040.
%Y A269790 Subsequence of A002144, A045433, A061237, A068228.
%Y A269790 Cf. similar sequences listed in A269784.
%K A269790 nonn
%O A269790 1,1
%A A269790 _Vincenzo Librandi_, Mar 24 2016