A082516 Differences between consecutive Niven (or Harshad) numbers.
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
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Differences[Select[Range[500],Divisible[#,Total[IntegerDigits[#]]]&]] (* Harvey P. Dale, Aug 02 2018 *)
Formula
Extensions
Definition modified by Harvey P. Dale, Aug 02 2018
Comments