A046239 Numbers whose cube is palindromic in base 8.
0, 1, 3, 9, 65, 73, 513, 4097, 4161, 32769, 262145, 262657, 2097153, 16777217, 16781313, 134217729, 1073741825, 1073774593, 8589934593, 68719476737, 68719738881
Offset: 1
Links
- Patrick De Geest, World!Of Numbers, Palindromic cubes in bases 2 to 17.
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