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.

A071349 Numbers k for which the GCD of the k-th primorial number and its totient (A058250) sets record.

Original entry on oeis.org

1, 2, 4, 5, 9, 10, 15, 16, 17, 23, 27, 28, 35, 39, 40, 41, 43, 49, 56, 57, 61, 62, 64, 66, 69, 72, 73, 76, 77, 91, 92, 96, 97, 102, 103, 104, 107, 111, 114, 117, 119, 127, 128, 137, 139, 143, 146, 150, 154, 155, 166, 171, 181, 182, 186, 195, 196, 201, 208, 214, 215
Offset: 1

Views

Author

Labos Elemer, May 21 2002

Keywords

Crossrefs

Programs

  • Mathematica
    q[n_] := Product[Prime[i], {i, 1, n}]; fq[n_] := Product[Prime[i] - 1, {i, 1, n}];
    a=0; Do[s=GCD[q[n], fq[n]]; If[s>a, a=s; Print[n]], {n, 1, 1000}]

Formula

If A058250(m) > A058250(k) for all k < m then m is a term.