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.

Showing 1-1 of 1 results.

A335303 Numbers k such that k divides sum of k-th twin prime pair.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 8, 12, 18, 30, 60, 70, 78, 150, 220, 240, 340, 360, 396, 672, 840, 1188, 1365, 1665, 3080, 3770, 6420, 7317, 9952, 10356, 12972, 18318, 19218, 20544, 21996, 24750, 28656, 34543, 37449, 41910, 180622, 201570, 245115, 728028, 856420, 897022, 986794
Offset: 1

Views

Author

Metin Sariyar, May 31 2020

Keywords

Examples

			8 is a term because sum of 8th twin prime pair is 71 + 73 = 8*18.
		

Crossrefs

Programs

  • Mathematica
    l={};c=0;Do[If[PrimeQ[Prime[n]+2],c=c+1;If[IntegerQ[(2*Prime[n]+2)/c], AppendTo[l,c]]] ,{n,2,10000}];l
  • PARI
    is(n) = {!bittest(n, 0)&&isprime(n\2-1)&&isprime(n\2+1)}; \\ A054735
    lista(nn) = {my(nb=0); for (n=1, nn, if (is(n), nb++; if ((n % nb) == 0, print1(nb, ", "));););} \\ Michel Marcus, Jun 01 2020
Showing 1-1 of 1 results.