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.

Showing 1-2 of 2 results.

A344636 Numbers k such that half the numbers from 0 to k inclusive contain the digit "1".

Original entry on oeis.org

1, 17, 23, 161, 269, 271, 1457, 3397, 3419, 3421, 13121, 44685, 118097, 674909, 674933, 1062881
Offset: 1

Views

Author

Glen Gilchrist, May 25 2021

Keywords

Comments

Andrew Hilton (see Ref) refers to these as "half-one" numbers.

Examples

			1 is a term since among the numbers 0,1 exactly half contain a digit "1".
17 is a term since among the numbers 0,1,2,...,17 exactly half contain a digit "1".
		

References

  • Andrew Hilton, 101 Puzzles to Solve on your Microcomputer, 1984, HARRAP, page 57.

Crossrefs

Programs

  • Mathematica
    Select[2Range@2000,Length@Select[Range[0,#-1],MemberQ[IntegerDigits@#,1]&]==#/2&]-1 (* Giorgos Kalogeropoulos, Jul 28 2021 *)

A346685 a(n) is the smallest positive integer k such that for all x >= k, at least 50% of the integers in the range 1..x contain n in their decimal expansion. In other words, it is the largest integer k such that exactly half of the integers 1..k have n in their decimal expansion.

Original entry on oeis.org

20327616, 1062880, 2125762, 3188644, 4251526, 5314408, 6377290, 17006110, 18068992, 19131874
Offset: 0

Views

Author

John Mason, Jul 29 2021

Keywords

Comments

The sequence is inspired by the fact that, for any string of decimal digits, s, "almost all" integers contain s in their decimal expansion. (The same is true for other bases.)

Examples

			a(1) = 1062880 because exactly half of the integers in [1..1062880] have a 1 in their decimal expansion.
		

Crossrefs

Also, this sequence has several values that coincide with values in A117862.
Showing 1-2 of 2 results.