login
A046830
Digits of n^2 include digits of n as subsequence, n does not end in 0.
1
1, 5, 6, 11, 25, 76, 95, 96, 101, 105, 125, 205, 305, 371, 376, 405, 441, 501, 505, 506, 525, 601, 605, 625, 676, 705, 756, 805, 825, 826, 905, 946, 976, 995, 996, 1001, 1005, 1006, 1011, 1021, 1025, 1026, 1036, 1046, 1101, 1105, 1201, 1205, 1276, 1305, 1316
OFFSET
1,2
PROG
(Python)
from itertools import count, islice
def A046830_gen(startvalue=1): # generator of terms >= startvalue
for k in count(max(startvalue, 1)):
if k%10:
c = iter(str(k**2))
if all(map(lambda b:any(map(lambda a:a==b, c)), str(k))):
yield k
A046830_list = list(islice(A046830_gen(), 20)) # Chai Wah Wu, Apr 03 2023
CROSSREFS
Sequence in context: A275492 A046828 A328095 * A042493 A042217 A041355
KEYWORD
nonn,base
STATUS
approved