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.

A139160 a(n)=(prime(n)!+2)/2.

Original entry on oeis.org

2, 4, 61, 2521, 19958401, 3113510401, 177843714048001, 60822550204416001, 12926008369442488320001, 4420880996869850977271808000001, 4111419327088961408862781440000001
Offset: 1

Views

Author

Artur Jasinski, Apr 11 2008

Keywords

Comments

For numbers of the form (p(n)!+1)/1 see A139159
For numbers of the form (p(n)!+2)/2 see A139160
For numbers of the form (p(n)!+3)/3 see A139161
For numbers of the form (p(n)!+4)/4 see A139162
For numbers of the form (p(n)!+5)/5 see A139163
For numbers of the form (p(n)!+6)/6 see A139164
For numbers of the form (p(n)!+7)/7 see A139165
For numbers of the form (p(n)!+8)/8 see A139166
For numbers of the form (p(n)!+9)/9 see A139089
For numbers of the form (p(n)!+10)/10 see A139168
For offsets for above sequences see A139169
For smallest integers of the form (p(m)!+n)/n see A139170

Crossrefs

Programs

  • Mathematica
    Table[(Prime[n]! + 2)/2, {n, 1, 30}]
  • PARI
    a(n)=prime(n)!/2 + 1 \\ Charles R Greathouse IV, Apr 29 2015

A139171 a(n) = smallest prime number p such that p!/n is an integer.

Original entry on oeis.org

2, 2, 3, 5, 5, 3, 7, 5, 7, 5, 11, 5, 13, 7, 5, 7, 17, 7, 19, 5, 7, 11, 23, 5, 11, 13, 11, 7, 29, 5, 31, 11, 11, 17, 7, 7, 37, 19, 13, 5, 41, 7, 43, 11, 7, 23, 47, 7, 17, 11, 17, 13, 53, 11, 11, 7, 19, 29, 59, 5, 61, 31, 7, 11, 13, 11, 67, 17, 23, 7, 71, 7, 73, 37, 11, 19, 11, 13, 79, 7, 11
Offset: 1

Views

Author

Artur Jasinski, Apr 11 2008

Keywords

Crossrefs

Prime equivalent of Kempner numbers A002034.
For quotients p!/n see A139170.
For indices of primes in this sequence see A139169.

Programs

  • Maple
    f:= proc(n) local F,m,Q,E,p;
      F:= ifactors(n)[2];
      m:= nops(F);
      Q:= map(t -> t[1],F);
      E:= map(t -> t[2],F);
      p:= max(Q)-1;
      do
        p:= nextprime(p);
        if andmap(i -> add(floor(p/Q[i]^j),j=1..floor(log[Q[i]](p))) >= E[i], [$1..m]) then return p fi;
      od
    end proc:
    f(1):= 2:
    map(f, [$1..100]); # Robert Israel, Mar 07 2018
  • Mathematica
    a = {}; Do[m = 1; While[ ! IntegerQ[Prime[m]!/n], m++ ]; AppendTo[a, Prime[m]], {n, 1, 100}]; a
  • PARI
    a(n) = forprime(p=2,, if (!(p! % n), return (p))); \\ Michel Marcus, Mar 08 2018
Showing 1-2 of 2 results.