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.

A098952 Integers divisible by their number of digits.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 102, 105, 108, 111, 114, 117, 120, 123, 126, 129, 132, 135, 138, 141
Offset: 1

Views

Author

Eric Angelini, Oct 21 2004

Keywords

Comments

Complement of A171491. [Jaroslav Krizek, Dec 10 2009]

Examples

			102 has three digits and is divisible by 3, therefore 102 is in the sequence.
		

Crossrefs

Cf. A171491.

Programs

  • Magma
    [0] cat [n: n in [1..150] | IsIntegral(n/#Intseq(n))]; // Bruno Berselli, Feb 09 2016
    
  • Mathematica
    Join[{0},Select[Range[150],Divisible[#,IntegerLength[#]]&]] (* Harvey P. Dale, Dec 13 2020 *)
  • Python
    def ok(n): return n%len(str(n)) == 0
    print([k for k in range(142) if ok(k)]) # Michael S. Branicky, Feb 07 2022

Extensions

Corrected by T. D. Noe, Oct 25 2006

A216449 Numbers k such that the first k digits of the string kkkk... correspond to a prime number.

Original entry on oeis.org

15, 346, 1137, 1429, 11143, 21139, 70776, 98328
Offset: 1

Views

Author

Giovanni Resta, Sep 11 2012

Keywords

Comments

The primality of the numbers corresponding to the first 4 terms has been certified with Primo.

Examples

			k = 15 is in the sequence since the 15-digit number 151515151515151 is prime.
		

Crossrefs

Subsequence of A171491.

Programs

  • Mathematica
    f[n_]:=Block[{d=IntegerDigits@n},FromDigits@d[[Mod[Range@n - 1,Length@d]+1]]]; Select[Range@1500,PrimeQ@f@# &]

Extensions

a(7)-a(8) from Michael S. Branicky, Dec 31 2024
Showing 1-2 of 2 results.