OFFSET
1,3
COMMENTS
Generated with DrScheme.
LINKS
Jonathan Wellons and Chai Wah Wu, Table of n, a(n) for n = 1..237 (first 174 terms from Jonathan Wellons).
J. Wellons, Tables of Shared Digits [archived]
EXAMPLE
58151^2 = 3381538801.
581858058583151^2 = 338558800338153581101581088801.
PROG
(Python)
from itertools import product
A136845_list = [0, 1]
for l in range(15):
....for a in ('1', '3', '5', '8'):
........for b in product('01358', repeat=l):
............for c in ('0', '1', '5'):
................n = int(''.join([a]+list(b)+[c]))
................if set(str(n*n)) <= {'0', '1', '3', '5', '8'}:
....................A136845_list.append(n) # Chai Wah Wu, May 25 2015
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
STATUS
approved