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.

A378914 Smallest positive m such that sigma(m) does not divide n, where sigma is the sum-of-divisors function (A000203).

Original entry on oeis.org

2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 7, 2, 2, 3, 2, 2, 3
Offset: 1

Views

Author

Paolo Xausa, Dec 11 2024

Keywords

Crossrefs

Programs

  • Mathematica
    A378914[n_] := Module[{m = 1}, While[Divisible[n, DivisorSigma[1,++m]]]; m];
    Array[A378914, 100]
  • PARI
    a(n) = my(m=1); while (!(n % sigma(m)), m++); m; \\ Michel Marcus, Dec 11 2024