|
|
A052212
|
|
Numbers k whose square contains the digits of k in order (but not necessarily consecutively).
|
|
2
|
|
|
1, 5, 6, 10, 11, 25, 50, 60, 76, 95, 96, 100, 101, 105, 110, 125, 205, 250, 305, 371, 376, 405, 441, 500, 501, 505, 506, 525, 600, 601, 605, 625, 676, 705, 756, 760, 805, 825, 826, 905, 946, 950, 960, 976, 995, 996, 1000, 1001, 1005, 1006, 1010, 1011, 1021
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
1276^2 = 1628176, which contains the digits 1,2,7,6 in that order.
|
|
PROG
|
(Python)
from itertools import count, islice
def A052212_gen(startvalue=1): # generator of terms >= startvalue
for k in count(max(startvalue, 1)):
c = iter(str(k**2))
if all(map(lambda b:any(map(lambda a:a==b, c)), str(k))):
yield k
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,easy,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|