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.
%I A344170 #31 May 23 2021 10:27:55 %S A344170 1,2,5,6,7,10,17,25,31,88,95,137,141,416,610,781,800,2353,7291,9627, %T A344170 9749,15946,19215 %N A344170 Numbers k such that 3^(2*k+1) - 3^k - 1 is prime. %C A344170 a(24) > 20000. %p A344170 for k from 1 to 3000 do if isprime(3^(2*k + 1) - 3^k - 1) then print(k); end if; end do %t A344170 Do[If[PrimeQ[3^(2k + 1) - 3^k - 1], Print[k]], {k, 1, 3000}] %o A344170 (PARI) for(k=1, 3e3, if(isprime(3^(2*k+1)-3^k-1), print1(k", "))) %o A344170 (SageMath) %o A344170 for k in range(1, 3000): %o A344170 if is_prime(3^(2 * k + 1) - 3^k - 1): %o A344170 print(k) %Y A344170 Cf. A344263. %K A344170 nonn,more %O A344170 1,2 %A A344170 _Reza K Ghazi_, May 10 2021 %E A344170 a(19)-a(21) from _Michael S. Branicky_, May 11 2021 %E A344170 a(22)-a(23) from _Reza K Ghazi_, May 14 2021