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.

A177835 Primes p for which a smaller prime q exists with A000120(q) >= 2*A000120(p)-1.

Original entry on oeis.org

17, 37, 41, 67, 73, 97, 131, 137, 139, 149, 163, 193, 197, 257, 263, 269, 277, 281, 293, 337, 353, 389, 401, 449, 521, 523, 547, 577, 593, 641, 643, 673, 769, 773, 1031, 1033, 1039, 1049, 1051, 1061, 1063, 1069, 1091, 1093, 1097, 1109, 1123, 1129, 1153, 1163, 1171
Offset: 1

Views

Author

Vladimir Shevelev, May 14 2010

Keywords

Comments

See A177836 for a comparison with A095075.

Crossrefs

Programs

  • Maple
    read("transforms") ;A000120 := proc(n) wt(n) ; end proc:
    isA177835 := proc(p) if isprime(p) then q := 2 ; while q < p do if A000120(q) >= 2*A000120(p)-1 then return true; end if; q := nextprime(q) ; end do: return false; else false; end if; end proc:
    for i from 1 to 2000 do if isA177835(ithprime(i)) then printf("%d,",ithprime(i)) ; end if; end do: # R. J. Mathar, May 31 2010
  • Mathematica
    With[{b = DigitCount[Prime[Range[200]], 2, 1]}, Rest@ Prime[Position[2*b - 1 - FoldList[Max, b], ?(# <= 0 &)] // Flatten]] (* _Amiram Eldar, Jul 25 2023 *)

Extensions

keyword:base and more terms added by R. J. Mathar, May 31 2010

A177836 Terms of A095075 which are not in A177835.

Original entry on oeis.org

2, 541, 557, 563, 569, 587, 601, 613, 617, 647, 653, 659, 661, 677, 709, 787, 809, 929, 2141, 2203, 2221, 2251, 2281, 2333, 2347, 2357, 2381, 2389, 2393, 2417, 2467, 2473, 2617, 2659, 2699, 2707, 2713, 2729, 2837, 2851, 2857, 2897, 2953, 3221, 3347, 3461
Offset: 1

Views

Author

Vladimir Shevelev, May 14 2010

Keywords

Comments

Note that the consecutive terms A095075(2)=17 up to A095075(27)=523 are all in A177835.

Crossrefs

Programs

Formula

Extensions

Keyword:base and more terms from R. J. Mathar, May 31 2010
Showing 1-2 of 2 results.