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.

Previous Showing 71-73 of 73 results.

A319542 Record values in A039932.

Original entry on oeis.org

1, 51, 531, 2571, 15703, 90271, 102053, 530102, 4550102, 4570102, 4580102, 22900501, 134003006, 1002003005, 5001002003, 5003001002, 30005001002, 30005002001, 200030005001, 1000200030005, 5000100020003, 5000300010002
Offset: 1

Views

Author

David Radcliffe, Sep 22 2018

Keywords

Comments

The positive integer n belongs to the sequence iff there exists a positive integer k so that each of the first k multiples of n contains the decimal digit 1, but no smaller n has this property for the same value of k.

Examples

			51 is a term because the first three multiples of 51 (51, 102, 153) all contain the digit 1, and 51 is the least positive integer with this property.
		

Crossrefs

Cf. A319548, A039932, A317173. Subset of A011531.

A337084 a(n) is the smallest nonzero digit d whose product d*n will contain the digit d, or 0 if no such digit exists.

Original entry on oeis.org

1, 0, 5, 0, 5, 2, 5, 0, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 9, 5, 0, 5, 2, 5, 6, 5, 5, 1, 0, 5, 0, 4, 2, 4, 0, 5, 0, 1, 0, 5, 3, 3, 2, 5, 8, 5, 5, 1, 0, 5, 7, 5, 2, 5, 0, 5, 2, 1, 2, 2, 2, 5, 2, 5, 7, 5, 5, 1, 0, 5, 0, 5, 2, 3, 3, 3, 0, 1, 7
Offset: 1

Views

Author

J. Lowell, Aug 14 2020

Keywords

Comments

a(n) = 1 for all numbers that contain the digit 1.
For all numbers with 6 followed by a digit in the 0-4 interval, a(n) is 1 or 2.
For all numbers with an odd digit followed by a 0, a(n) is in the 1-5 interval.

Examples

			a(22) = 9 because none of 22*1 to 22*8 contain the digit that we multiplied 22 by to get the product, but 22*9 = 198 which contains the digit 9.
		

Crossrefs

Indices of 0's give A296606.
Indices of 1's give A011531.

Programs

  • Mathematica
    a[n_] := Module[{d = 1}, While[d < 10 && ! MemberQ[IntegerDigits[n*d], d], d++]; If[d < 10, d, 0]]; Array[a, 100] (* Amiram Eldar, Aug 15 2020 *)
  • PARI
    a(n) = {for (d=1, 9, if (#select(x->(x==d), digits(n*d)), return (d));); return (0);} \\ Michel Marcus, Sep 13 2020

A345387 Numbers k such that k, 2k, 3k, 4k all contain digit 1.

Original entry on oeis.org

531, 541, 1053, 1054, 2571, 3051, 3061, 3071, 3105, 3106, 3107, 3157, 3551, 3561, 3571, 3581, 3591, 4051, 4061, 4071, 4081, 4091, 4105, 4106, 4107, 4108, 4109, 4155, 4156, 4157, 4158, 4159, 4551, 4561, 4571, 4581, 4591, 5031, 5041, 5103, 5104, 5128, 5129, 5153, 5154
Offset: 1

Views

Author

Tanya Khovanova, Jun 17 2021

Keywords

Examples

			The first four multiples of 531 are 531, 1062, 1593, and 2124. All of them contain digit 1.
		

Crossrefs

Cf. A011531.

Programs

  • Mathematica
    Select[Range[10000], Length[ Position[IntegerDigits[#], 1]] > 0 && Length[ Position[IntegerDigits[2 #], 1]] > 0 && Length[ Position[IntegerDigits[3 #], 1]] > 0 && Length[ Position[IntegerDigits[4 #], 1]] > 0 &]
  • Python
    def ok(n): return all('1' in str(k*n) for k in [1, 2, 3, 4])
    print(list(filter(ok, range(5155)))) # Michael S. Branicky, Jun 17 2021
Previous Showing 71-73 of 73 results.