|
|
A028562
|
|
Palindromes of form k*(k+6).
|
|
3
|
|
|
0, 7, 55, 616, 19591, 76167, 515515, 749947, 7474747, 72999927, 236799997632, 769437734967, 1900289820091, 2998954598992, 5170703070715, 5934592954395, 29175111157192, 51175166157115, 57154688645175, 211106050601112, 570608929806075, 574823545328475
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
|
|
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*(k+6)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,changed
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|