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.

A103855 a(n) = prime(n)! - prime(n)# + 1.

Original entry on oeis.org

1, 1, 91, 4831, 39914491, 6226990771, 355687427585491, 121645100399132311, 25852016738884753547131, 8841761993739701954537146306771, 8222838654177922817725362319509871, 13763753091226345046315979581573481661865191, 33452526613163807108170062053440751360901736472791
Offset: 1

Views

Author

Reinhard Zumkeller, Feb 20 2005

Keywords

Crossrefs

Programs

  • Mathematica
    primorial[n_] := Product[Prime[i], {i, n}]; A103855[n_] := Prime[n]! - primorial[n] + 1; Array[A103855, 20] (* G. C. Greubel, May 09 2017 *)
    With[{nn=15},#[[1]]-#[[2]]+1&/@Thread[{Prime[Range[nn]]!,FoldList[Times,Prime[Range[nn]]]}]] (* Harvey P. Dale, Aug 11 2025 *)

Formula

a(n) = A039716(n) - A002110(n) + 1 = A002110(n) * (A092435(n) - 1) + 1.

A103896 Euler's totient of prime(n)! / prime(n)# + 1.

Original entry on oeis.org

1, 1, 4, 20, 15700, 161520, 659739168, 11887243200, 115875912594352, 1360481062410358294032, 40999220870977029249072, 1854483563489396099991763032000, 106016408292727234808287504322403328, 4534810991759912394035394805790730240
Offset: 1

Views

Author

Reinhard Zumkeller, Feb 20 2005

Keywords

Crossrefs

Formula

a(n) = A000010(A103890(n)).
Showing 1-2 of 2 results.