login
A137146
Numbers k such that k and k^2 use only the digits 5, 6, 7 and 8.
2
76, 766, 7666, 76666, 766666, 7666666, 76666666, 766666666, 7666666666, 76666666666, 766666666666, 7666666666666, 76666666666666, 766666666666666, 7666666666666666, 76666666666666666, 766666666666666666, 7666666666666666666, 76666666666666666666, 766666666666666666666
OFFSET
1,1
COMMENTS
Generated with DrScheme.
The first digit of each term is either 7 or 8 and the last digit is 6. - Chai Wah Wu, May 25 2021
EXAMPLE
766666666666666^2 = 587777777777776755555555555556.
PROG
(Python)
from itertools import product
A137146_list = [n for n in (int(''.join(d)) for l in range(1, 6) for d in product('5678', repeat=l)) if set(str(n**2)) <= set('5678')] # Chai Wah Wu, May 25 2021
CROSSREFS
Cf. A000290 (the squares); A136808, A136809, ..., A137147 for other digit combinations.
Cf. A058469 - A058472 and A058411, ..., A058474 for other digit combinations.
Cf. A277959, A277960, A277961, A295005, ..., A295009 (squares with largest digit = 2, 3, 4, 5, ..., 9).
Sequence in context: A136964 A136962 A324626 * A156388 A156396 A233365
KEYWORD
base,nonn
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
EXTENSIONS
a(15)-a(20) from Pontus von Brömssen, Apr 12 2024
STATUS
approved