|
|
A028559
|
|
Palindromes of the form k*(k+5).
|
|
1
|
|
|
0, 6, 66, 414, 696, 41814, 42224, 666666, 4282824, 4754574, 4881884, 416343614, 630939036, 4159669514, 6817557186, 42877777824, 4163250523614, 4783601063874, 4986733376894, 47431877813474, 6333914444193336, 44653247574235644, 62141509790514126
(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+5)):
yield k*(k+5)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|