login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Digits of n^2 include digits of n as subsequence, n does not end in 0.
1

%I #8 Apr 04 2023 22:05:59

%S 1,5,6,11,25,76,95,96,101,105,125,205,305,371,376,405,441,501,505,506,

%T 525,601,605,625,676,705,756,805,825,826,905,946,976,995,996,1001,

%U 1005,1006,1011,1021,1025,1026,1036,1046,1101,1105,1201,1205,1276,1305,1316

%N Digits of n^2 include digits of n as subsequence, n does not end in 0.

%o (Python)

%o from itertools import count, islice

%o def A046830_gen(startvalue=1): # generator of terms >= startvalue

%o for k in count(max(startvalue,1)):

%o if k%10:

%o c = iter(str(k**2))

%o if all(map(lambda b:any(map(lambda a:a==b,c)),str(k))):

%o yield k

%o A046830_list = list(islice(A046830_gen(),20)) # _Chai Wah Wu_, Apr 03 2023

%K nonn,base

%O 1,2

%A _David W. Wilson_