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.

A116957 Lynch-Bell numbers n such that 5 is a digit of n.

Original entry on oeis.org

5, 15, 135, 175, 315, 735, 1395, 1935, 3195, 3915, 9135, 9315
Offset: 1

Views

Author

Walter Kehowski, Apr 03 2006

Keywords

Comments

A Lynch-Bell number is a positive integer n with distinct nonzero digits such that each of its digits divides the number: n mod d = 0 if d is a digit of n.

Examples

			a(3)=135 since 135 is the third Lynch-Bell number that contains a 5.
		

Crossrefs

Programs

  • Mathematica
    lbn5Q[n_]:=Module[{idn=IntegerDigits[n]},MemberQ[idn,5]&&FreeQ[idn,0]&&Max[DigitCount[n]]==1&&AllTrue[n/idn,IntegerQ]]; Select[Range[ 10000],lbn5Q] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Aug 19 2019 *)