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-2 of 2 results.

A064910 Smallest semiprime p*q such that q >= p and q mod p = n.

Original entry on oeis.org

4, 6, 15, 65, 77, 133, 91, 319, 209, 341, 299, 481, 493, 799, 527, 1007, 1139, 2449, 703, 3611, 989, 1541, 1643, 3589, 1537, 2407, 2747, 2759, 1829, 3811, 1891, 4633, 2993, 3959, 2627, 4033, 2701, 6157, 3239, 9073, 3569, 5461, 4183, 6439, 5141, 6533
Offset: 0

Views

Author

Patrick De Geest, Oct 13 2001

Keywords

Crossrefs

Cf. A001358 (p2 mod p1 = 0), A064899-A064909, A064911, A053409, A046413.

Programs

  • Mathematica
    nsp[n_Integer] := nsp[n] = Block[{sp = n + 1}, While[PrimeOmega[sp] != 2, sp++]; sp]; a[n_Integer] := Block[{sp = 4}, While[ fi = FactorInteger@ sp; Mod[fi[[-1, 1]], fi[[1, 1]]] != n, sp = nsp[sp]]; sp]; Array[a, 46, 0] (* Robert G. Wilson v, Aug 20 2025 *)

Extensions

Name amended by John Cerkan, Apr 12 2018

A049236 a(n) is the number of distinct prime factors of prime(n) + 2.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 2, 2, 1, 3, 1, 2, 2, 2, 2, 1, 2, 1, 2, 2, 3, 1, 2, 1, 2, 1, 3, 1, 2, 2, 2, 1, 3, 2, 1, 1, 2, 2, 2, 1, 3, 2, 1, 3, 2, 2, 1, 3, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 3, 2, 3, 2, 2, 1, 2, 1, 3, 2, 2, 2, 2, 1, 3, 2, 2, 2, 2, 2, 2, 2, 1, 3, 2, 2, 2, 2, 1, 2
Offset: 1

Views

Author

Keywords

Examples

			prime(27) = 103, prime(27) + 2 = 105 = 3*5*7 has 3 prime factors, so a(27) = 3.
		

Crossrefs

Programs

  • Mathematica
    Table[Length[FactorInteger[Prime[n] + 2]], {n, 1, 50}] (* G. C. Greubel, May 12 2017 *)
  • PARI
    a(n) = omega(prime(n) + 2); \\ Amiram Eldar, Sep 16 2024

Formula

a(n) = A001221(A052147(n)). - Amiram Eldar, Sep 16 2024
Showing 1-2 of 2 results.