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.

A082516 Differences between consecutive Niven (or Harshad) numbers.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 6, 2, 1, 3, 3, 3, 6, 4, 2, 3, 3, 2, 4, 6, 3, 7, 2, 8, 1, 3, 6, 10, 2, 6, 2, 1, 1, 2, 3, 3, 6, 6, 1, 2, 5, 4, 6, 2, 1, 3, 6, 9, 9, 10, 2, 3, 3, 2, 1, 3, 3, 2, 1, 6, 4, 2, 2, 1, 3, 2, 4, 6, 3, 4, 5, 9, 3, 2, 4, 10, 5, 3, 12, 6, 2, 4, 3, 5, 2, 2, 6, 3, 3, 6, 9, 9, 4, 6, 2, 3, 3, 14, 4, 3
Offset: 1

Views

Author

Jason Earls, Apr 30 2003

Keywords

Comments

This sequence is unbounded since the asymptotic density of the Niven numbers is 0. - Amiram Eldar, Oct 21 2020

Crossrefs

Programs

  • Mathematica
    Differences[Select[Range[500],Divisible[#,Total[IntegerDigits[#]]]&]] (* Harvey P. Dale, Aug 02 2018 *)

Formula

a(n) = A005349(n+1) - A005349(n). - Amiram Eldar, Oct 21 2020

Extensions

Definition modified by Harvey P. Dale, Aug 02 2018