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.

A101790 Numbers k such that 4*k-1, 8*k-1 and 16*k-1 are all primes.

This page as a plain text file.
%I A101790 #20 May 13 2024 02:14:48
%S A101790 3,45,90,180,255,258,363,378,453,483,615,675,705,873,885,978,1350,
%T A101790 1533,1770,1788,2673,2793,2868,3030,3225,3240,4203,4290,4548,4830,
%U A101790 4998,5103,5253,5295,5568,5775,5955,6060,6138,6870,7383,7713,8133,8370,8580,9000
%N A101790 Numbers k such that 4*k-1, 8*k-1 and 16*k-1 are all primes.
%H A101790 Amiram Eldar, <a href="/A101790/b101790.txt">Table of n, a(n) for n = 1..10000</a>
%e A101790 4*3 - 1 = 11, 8*3 - 1 = 23 and 16*3 - 1 = 47 are primes, so 3 is a term.
%t A101790 Select[Range[10^4], And @@ PrimeQ[2^Range[2, 4]*# - 1] &] (* _Amiram Eldar_, May 12 2024 *)
%o A101790 (Magma) [n: n in [0..10000] | IsPrime(4*n-1) and IsPrime(8*n-1) and IsPrime(16*n-1)]; // _Vincenzo Librandi_, Nov 17 2010
%o A101790 (PARI) is(k) = isprime(4*k-1) && isprime(8*k-1) && isprime(16*k-1); \\ _Amiram Eldar_, May 12 2024
%Y A101790 Cf. A002515, A101791, A101792, A101793.
%Y A101790 Subsequence of A005099 and A005122.
%Y A101790 Subsequences: A101794, A101994.
%K A101790 easy,nonn
%O A101790 1,1
%A A101790 Douglas Stones (dssto1(AT)student.monash.edu.au), Dec 16 2004