A210700 A047160(3n): smallest m >= 0 with both 3n - m and 3n + m prime.
0, 1, 2, 1, 2, 1, 2, 5, 4, 1, 4, 5, 2, 1, 2, 5, 8, 7, 4, 1, 4, 5, 2, 1, 4, 5, 2, 5, 14, 7, 4, 7, 2, 1, 2, 1, 2, 13, 10, 7, 14, 13, 2, 5, 4, 1, 10, 5, 10, 1, 4, 7, 8, 5, 2, 5, 8, 7, 4, 1, 10, 5, 8, 1, 2, 1, 10, 7, 16, 13, 14, 17, 8, 11, 2, 1, 2, 5, 4, 1, 14, 5
Offset: 1
Links
- Jason Kimberley, Table of n, a(n) for n = 1..3333
- OEIS (Plot 2), Plot of (log(n), log(a(n)))
- OEIS (Plot 2), Plot of (log(A210701(n)), log(A210702(n)))
Programs
-
Mathematica
sml[n_]:=Module[{m=0},While[!PrimeQ[3n-m]||!PrimeQ[3n+m],m++];m]; Array[ sml,100] (* Harvey P. Dale, Sep 23 2022 *)
Comments