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.

A358565 a(n) = A358548(n) / 6.

This page as a plain text file.
%I A358565 #23 Jan 06 2023 02:07:56
%S A358565 1,1,1,1,2,1,1,1,2,2,1,2,1,1,3,1,2,3,1,1,2,1,5,1,1,2,1,1,1,2,2,3,1,5,
%T A358565 1,1,4,1,2,3,2,2,1,2,1,2,2,2,1,2,6,1,1,3,1,1,3,4,1,1,1,3,1,3,3,4,3,2,
%U A358565 4,2,2,1,2,3,1,3,1,4,3,2,1,1,3,1,1,5,1
%N A358565 a(n) = A358548(n) / 6.
%C A358565 (1/6) * (first differences of consecutive primes of the form 3*k - 1).
%o A358565 (Python)
%o A358565 from itertools import islice
%o A358565 from sympy import isprime
%o A358565 def A358565_gen(): # generator of terms
%o A358565     p, q = 5, 11
%o A358565     while True:
%o A358565         while not isprime(q):
%o A358565             q += 3
%o A358565         yield (q-p)//6
%o A358565         p = q
%o A358565         q += 3
%o A358565 A358565_list = list(islice(A358565_gen(),30)) # _Chai Wah Wu_, Jan 05 2023
%Y A358565 Cf. A358548, A003627.
%K A358565 nonn
%O A358565 2,5
%A A358565 _Jordan Gunter_, Nov 22 2022