cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A046835 Internal digits of n^2 include digits of n as subsequence, n does not end in 0.

Original entry on oeis.org

3628, 3792, 8882, 14651, 28792, 36574, 37026, 37028, 37073, 58808, 68323, 71213, 75884, 75887, 75888, 87073, 88526, 88796, 88808, 94682, 105125, 105153, 146308, 161574, 269622, 368323, 369255, 369482, 369863, 370137, 370156, 370162, 370178
Offset: 1

Views

Author

Keywords

Examples

			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)
		

Crossrefs

Programs

  • 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
    A046835_list = list(islice(A046835_gen(),20)) # Chai Wah Wu, Apr 03 2023