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.

A001598 Number of terms in {b(1)..b(n)} relatively prime to b(n), where b(n) = A001597(n).

Original entry on oeis.org

1, 1, 1, 3, 2, 5, 5, 4, 2, 9, 5, 8, 5, 13, 12, 8, 5, 17, 8, 6, 11, 14, 11, 23, 7, 23, 26, 11, 16, 14, 15, 31, 10, 28, 16, 24, 15, 37, 9, 39, 16, 20, 27, 20, 31, 14, 43, 47, 23, 32, 20, 51, 17, 14, 54, 24, 30, 28, 27, 40, 57, 61, 20, 56, 26, 42, 30, 28, 68, 22
Offset: 1

Views

Author

Keywords

References

  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Programs

  • Mathematica
    nn = 10^4; t = Join[{1}, Union[Flatten[Table[n^i, {i, Prime[Range[PrimePi[Log[2, nn]]]]}, {n, 2, nn^(1/i)}]]]]; Table[Count[GCD[Take[t, n], t[[n]]], 1], {n, Length[t]}] (* T. D. Noe, Aug 09 2012 *)

Extensions

a(1) added by T. D. Noe, Aug 09 2012