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.

A341718 Subtract 1 from each term of A004094 (the powers of 2 written backwards).

Original entry on oeis.org

0, 1, 3, 7, 60, 22, 45, 820, 651, 214, 4200, 8401, 6903, 2917, 48360, 86722, 63555, 270130, 441261, 882424, 6758400, 2517901, 4034913, 8068837, 61277760, 23445532, 46880175, 827712430, 654534861, 219078634, 4281473700, 8463847411, 6927694923, 2954399857
Offset: 0

Views

Author

N. J. A. Sloane, Feb 24 2021

Keywords

Crossrefs

Programs

  • Maple
    a:= n-> (s-> parse(cat(s[-i]$i=1..length(s))))(""||(2^n))-1:
    seq(a(n), n=0..50);  # Alois P. Heinz, Feb 24 2021
  • Mathematica
    Array[IntegerReverse[2^#] - 1 &, 32, 0] (* Michael De Vlieger, Feb 24 2021 *)
  • PARI
    a(n) = fromdigits(Vecrev(digits(2^n))) - 1; \\ Michel Marcus, Feb 25 2021
  • Python
    A341718_list = [int(str(2**n)[::-1])-1 for n in range(20)] # Chai Wah Wu, Feb 24 2021