A358548 a(n) = A003627(n+1) - A003627(n).
3, 6, 6, 6, 6, 12, 6, 6, 6, 12, 12, 6, 12, 6, 6, 18, 6, 12, 18, 6, 6, 12, 6, 30, 6, 6, 12, 6, 6, 6, 12, 12, 18, 6, 30, 6, 6, 24, 6, 12, 18, 12, 12, 6, 12, 6, 12, 12, 12, 6, 12, 36, 6, 6, 18, 6, 6, 18, 24, 6, 6, 6, 18, 6, 18, 18, 24, 18, 12, 24, 12, 12, 6, 12, 18, 6, 18, 6, 24
Offset: 1
Examples
For n=3, a(3) = A003627(4) - A003627(3) = 17 - 11 = 6.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
A007528 := Select[6 Range[200] - 1, PrimeQ]; m := Table[A007528[[n+1]] - A007528[[n]], {n, 1, Length[A007528]-1}]; PrependTo[m, 3] (* Timothy L. Tiffin, Jan 05 2023 *) Differences[Select[Prime[Range[200]],Mod[#,3]==2&]] (* Harvey P. Dale, Jan 31 2023 *)
-
Python
from itertools import islice from sympy import isprime def A358548_gen(): # generator of terms p, q = 2, 5 while True: while not isprime(q): q += 3 yield q-p p = q q += 3 A358548_list = list(islice(A358548_gen(),30)) # Chai Wah Wu, Jan 05 2023
Comments