login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A028561
Numbers k such that k*(k+6) is a palindrome.
2
0, 1, 5, 22, 137, 273, 715, 863, 2731, 8541, 486618, 877173, 1378507, 1731746, 2273915, 2436099, 5401396, 7153679, 7560069, 14529486, 23887419, 23975475, 73114035, 84890503, 88837611, 235680755, 235769755, 272515513, 440021417, 782357262, 1414071397, 2352019439
OFFSET
1,3
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..35
Erich Friedman, What's Special About This Number? (See entries 863, 8541.)
MATHEMATICA
Select[Range[0, 24*10^6], PalindromeQ[#(#+6)]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Sep 04 2017 *)
PROG
(Python)
from itertools import count, islice
def ispal(n): s = str(n); return s == s[::-1]
def agen():
for k in count(0):
if ispal(k*(k+6)):
yield k
print(list(islice(agen(), 22))) # Michael S. Branicky, Jan 25 2022
CROSSREFS
KEYWORD
nonn,base
EXTENSIONS
a(23) and beyond from Michael S. Branicky, Jan 25 2022
STATUS
approved