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.

A368625 Characteristic function of non-refactorable numbers (A159973).

Original entry on oeis.org

0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1
Offset: 1

Views

Author

Wesley Ivan Hurt, Jan 01 2024

Keywords

Crossrefs

Cf. A000005, A033950 (refactorable numbers), A054008, A159973, A336040.

Programs

  • Mathematica
    Table[(Ceiling[n/DivisorSigma[0, n]] - Floor[n/DivisorSigma[0, n]]), {n, 100}]
  • PARI
    A368625(n) = !!(n%numdiv(n)); \\ Antti Karttunen, Jan 17 2025

Formula

a(n) = ceiling(n/d(n))-floor(n/d(n)), where d(n) is the number of divisors of n (A000005).
a(n) = 1 - A336040(n).
a(n) = [A054008(n) > 0], where [ ] is the Iverson bracket. - Antti Karttunen, Jan 17 2025

Extensions

Data section extended up to a(105) by Antti Karttunen, Jan 17 2025