OFFSET
1,1
LINKS
David A. Corneth, Table of n, a(n) for n = 1..3742
EXAMPLE
From David A. Corneth, Aug 29 2023: (Start)
3628 is in the sequence as 3628^2 = 13162384 and so 3628 is in the internal digits; 1(3)1(6)(2)3(8)4, reading from left to right the digits in brackets are 3628 and all these digits are internal digits of 13162384.
1011 is NOT in the seuence as 1011^2 = 1022121 and so 1011 is in the digits;
(1)(0)22(1)2(1) but not all these digits are internal digits of 1022121. (End)
PROG
(Python)
from itertools import count, islice
def A046835_gen(startvalue=1): # generator of terms >= startvalue
for k in count(max(startvalue, 1)):
if k%10:
c = iter(str(k**2)[1:-1])
if all(map(lambda b:any(map(lambda a:a==b, c)), str(k))):
yield k
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved