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.

A001731 a(n) is 9 written in base 10-n.

Original entry on oeis.org

9, 10, 11, 12, 13, 14, 21, 100, 1001, 111111111
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    Append[Array[FromDigits@ IntegerDigits[9, 10 - #] &, 9, 0], FromDigits@ ConstantArray[1, 9]] (* Michael De Vlieger, Feb 02 2022 *)
  • PARI
    a(n) = if (n==9, 111111111, fromdigits(digits(9, 10-n), 10)); \\ Michel Marcus, Feb 02 2022

Extensions

Corrected by Henry Bottomley, Nov 23 2000