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.

A140785 a(n) = the single integer k, where p(n) <= k <= p(n+1), that is divisible by (p(n+1)-p(n)+1), where p(n) is the n-th prime.

Original entry on oeis.org

2, 3, 6, 10, 12, 15, 18, 20, 28, 30, 35, 40, 42, 45, 49, 56, 60, 63, 70, 72, 77, 80, 84, 90, 100, 102, 105, 108, 110, 120, 130, 133, 138, 143, 150, 154, 161, 165, 168, 175, 180, 187, 192, 195, 198, 208, 221, 225, 228, 230, 238, 240, 242, 252, 259, 266, 270, 273
Offset: 1

Views

Author

Leroy Quet, Jul 13 2008

Keywords

Crossrefs

Programs

  • Mathematica
    (#[[2]]-#[[1]]+1)Floor[#[[2]]/(#[[2]]-#[[1]]+1)]&/@Partition[ Prime[ Range[ 60]],2,1] (* Harvey P. Dale, Apr 07 2018 *)

Formula

a(n) = (p(n+1)-p(n)+1) * floor(p(n+1)/(p(n+1)-p(n)+1)), where p(n) is the n-th prime.

Extensions

More terms from Diana L. Mecum, Jul 21 2008