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!)
A137093 Numbers k such that k and k^2 use only the digits 2, 4, 5 and 6. 1
2, 5, 25, 65, 665, 6665, 66665, 666665, 6666665, 25625465, 65226242, 66666665, 666666665, 6666666665, 66666666665, 666666666665, 6666666666665, 66666666666665, 666666666666665, 6666666666666665, 66666666666666665, 666666666666666665, 6666666666666666665 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Generated with DrScheme.
Contains 6*(10^n - 1)/9 - 1 for n >= 1. There are no others than those of this form with up to 35 digits. - Michael S. Branicky, May 25 2021
LINKS
Jonathan Wellons, Tables of Shared Digits [archived].
EXAMPLE
25625465^2 = 656664456466225.
MATHEMATICA
fQ[n_] := Block[{d = DigitCount@ n}, Total@ Delete[d, {{2}, {4}, {5}, {6}}] == 0]; Select[Range@ 100000, fQ@ # && fQ[#^2] &] (* Michael De Vlieger, Apr 29 2015 *)
PROG
(Python)
from itertools import product
A137093_list = [int(''.join(a)) for l in range(1, 10) for a in product('2456', repeat = l) if set(str(int(''.join(a))**2)) <= {'2', '4', '5', '6'}] # Chai Wah Wu, Apr 29 2015
(Python) # uses auptod in A137110
print(auptod(16, only="2456")) # Michael S. Branicky, May 25 2021
CROSSREFS
Cf. A137110.
Sequence in context: A105647 A045586 A137096 * A335213 A080626 A015957
KEYWORD
base,nonn,changed
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
EXTENSIONS
a(20)-a(23) from Michael S. Branicky, May 25 2021
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 19 08:45 EDT 2024. Contains 371782 sequences. (Running on oeis4.)