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-1 of 1 results.

A046239 Numbers whose cube is palindromic in base 8.

Original entry on oeis.org

0, 1, 3, 9, 65, 73, 513, 4097, 4161, 32769, 262145, 262657, 2097153, 16777217, 16781313, 134217729, 1073741825, 1073774593, 8589934593, 68719476737, 68719738881
Offset: 1

Views

Author

Patrick De Geest, May 15 1998

Keywords

Crossrefs

Cf. A046240.

Programs

  • PARI
    isok(k) = my(d=digits(k^3, 8)); Vecrev(d) == d; \\ Michel Marcus, Aug 02 2022
    
  • Python
    from itertools import count, islice
    from sympy.ntheory import is_palindromic as ispal
    def agen(start=0): yield from (k for k in count(start) if ispal(k**3, 8))
    print(list(islice(agen(), 12))) # Michael S. Branicky, Aug 02 2022

Extensions

More terms from Ryan Propper, May 30 2006
Showing 1-1 of 1 results.