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

A085753 Least k such that n^n + k is a semiprime.

Original entry on oeis.org

3, 0, 6, 3, 2, 5, 6, 3, 4, 3, 6, 31, 6, 3, 4, 1, 20, 19, 28, 3, 8, 3, 60, 5, 16, 15, 46, 3, 2, 7, 12, 13, 4, 3, 18, 3, 9, 3, 32, 7, 6, 37, 30, 61, 2, 81, 26, 5, 34, 79, 62, 6, 44, 5, 16, 15, 10, 133, 12, 31, 28, 49, 26, 21, 92, 43, 76, 67, 38, 57, 36, 43, 21, 115, 2, 25, 74, 179, 28, 27, 52, 15
Offset: 1

Views

Author

Jason Earls, Jul 21 2003

Keywords

Crossrefs

Cf. A001358 (semiprimes), A089542, A089543, A089544.

Programs

  • Mathematica
    PrimeFactorExponentsAdded[n_] := Plus @@ Flatten[ Table[ # [[2]], {1}] & /@ FactorInteger[n]]; f[n_] := Block[{k = 0}, While[ PrimeFactorExponentsAdded[n^n + k] != 2, k++ ]; k]; Table[ f[n], {n, 1, 40}]
    Table[Module[{k=0,c=n^n},While[PrimeOmega[c+k]!=2,k++];k],{n,82}] (* Harvey P. Dale, Aug 02 2025 *)
  • PARI
    a(n) = my(k=0); while (bigomega(n^n+k) != 2, k++); k; \\ Michel Marcus, Jul 21 2020

Extensions

Edited and extended by Robert G. Wilson v, Aug 14 2003
Corrected and extended by Ray Chandler, Nov 22 2003
a(69)-a(82) from Max Alekseyev, Jun 13 2009
a(52) and a(73) corrected by Sean A. Irvine, Jul 20 2020

A089542 a(n) is the least semiprime > n^n.

Original entry on oeis.org

4, 4, 33, 259, 3127, 46661, 823549, 16777219, 387420493, 10000000003, 285311670617, 8916100448287, 302875106592259, 11112006825558019, 437893890380859379, 18446744073709551617, 827240261886336764197, 39346408075296537575443, 1978419655660313589124007
Offset: 1

Views

Author

Ray Chandler, Nov 09 2003

Keywords

Crossrefs

Formula

a(n) = n^n + A085753(n).

Extensions

Name clarified by and more terms from Jinyuan Wang, Aug 01 2021

A089543 Lesser prime factor of semiprimes in A089542.

Original entry on oeis.org

2, 2, 3, 7, 53, 29, 353, 1549, 8353, 7, 15889, 1691419, 347, 67, 1097, 274177, 43, 18882774223, 67, 5197, 1801088543, 556114086547, 44773, 3062989, 5641, 92553847628747, 18349361, 607, 51131, 13217, 42806180589950051
Offset: 1

Views

Author

Ray Chandler, Nov 09 2003

Keywords

Crossrefs

Showing 1-3 of 3 results.