login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A046829 Numbers k such that digits of k^2 include digits of k as subsequence. 7
0, 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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
MATHEMATICA
fQ[n_]:=LongestCommonSequence[ToString[n^2], ToString[n]]==ToString[n];
Select[Range[0, 1011], fQ[#]&] (* Ivan N. Ianakiev, Dec 29 2023 *)
PROG
(Python)
from itertools import count, islice
def A046829_gen(startvalue=0): # generator of terms >= startvalue
for k in count(max(startvalue, 0)):
c = iter(str(k**2))
if all(map(lambda b:any(map(lambda a:a==b, c)), str(k))):
yield k
A046829_list = list(islice(A046829_gen(), 20)) # Chai Wah Wu, Apr 03 2023
CROSSREFS
Cf. A046827, A062118 (subsequence).
Sequence in context: A308262 A029780 A074913 * A052212 A046838 A326418
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Offset 1 from Alois P. Heinz, Apr 03 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)